Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

named pipes: handle reads when isFifo #208

Closed
odeke-em opened this issue May 21, 2015 · 1 comment
Closed

named pipes: handle reads when isFifo #208

odeke-em opened this issue May 21, 2015 · 1 comment
Milestone

Comments

@odeke-em
Copy link
Owner

Reading from a named pipe with no content will hang infinitely until content is passed in.
Simple test here:

$ fifoPath=testPipe
$ mkfifo $fifoPath
$ sleeper() { i=0;while [ $i -lt 20 ];do echo -e "sleeping $i\r"; let i=i+1;sleep 1;done; echo "done here $i" >> $fifoPath; }
$ sleeper & # Put it in the background
$ cat $fifoPath # Going to hang for the 20 seconds -- this can happen infinitely
@odeke-em
Copy link
Owner Author

Addressed by #209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant