That would be the obvious choice. But unfortunately there seems to be no way to realize that in PHP. And furthermore if the fifo has no listener
How do I get a stream object to pass to stream_select? fopen? fopen is already blocking if my fifo listener is dead.