I have this little test script:
rm fooo | cat
mkfifo fooo
echo 'bar' > fooo # blocks here
echo 'done'
I am guessing that because there is nobody reading from the named pipe, that the write call will block until then.
Is there some way to write even if there are no readers or to check to see if there are no readers?
linux non-blocking pipe writeddto open the named pipe in non-blocking mode or something