[cs631apue] echo "Kookaburra has left the tree" | ./aed -e | ./aed -d

Nick Smith nsmith1 at stevens.edu
Mon Dec 9 12:48:39 EST 2013


I had this issue as well and solved it by calling flock(2) to put an 
exclusive lock the tty input so that they won't overlap.

On Mon 09 Dec 2013 03:07:42 AM EST, lbustama wrote:
> Hi,
>
> I'm using repassphrase(3) to read the user provided password.
>
> when I run "echo "Kookaburra has left the tree" | ./aed -e | ./aed -d"
> the password prompt for the two instances of the program overlap, and
> echoing turns on after the first instance of the program has completed
> reading it's password.
>
>
> lbustama at avalon:~/cs631/HW5$ echo "Kookaburra has left the tree" |
> ./aed -e | ./aed -d
> Password: Password:
> Again:
> secretpassword <<<<<<<<<<<<<<<<<<<ECHOING IS BACK ON
>
> Kookaburra has left the tree
>
> any suggestions on how to fix this?
>
> Thanks,
>
> Luis
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue


More information about the cs631apue mailing list