You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ];doecho -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
The text was updated successfully, but these errors were encountered:
Reading from a named pipe with no content will hang infinitely until content is passed in.
Simple test here:
The text was updated successfully, but these errors were encountered: