note 77928 added to function.posix-mkfifo
| From: | tech at kwur dot com | Date: | Thu, 20 Sep 2007 05:44:48 +0000 |
| Subject: | note 77928 added to function.posix-mkfifo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130622@lists.php.net to get a copy of this message | ||
This is still not a solution: if I listen to commands on a pipe and output status on a separate
pipe, PHP will block on both opens because something else has not already connected to this pipe.
Because I can't do a low-level fcntl() to to set O_NONBLOCK or something like it, this always
locks up and is really stupid. The only way I can get it to work is to spawn seperate subshells
with system() and have them cat, or echo respectively and then the pipes work properly...usually?
Its alot of trouble that we can't set the blocking on the open!!
----
Server IP: 209.41.74.194
Probable Submitter: 71.14.94.170
----
Manual Page -- http://www.php.net/manual/en/function.posix-mkfifo.php
Edit -- https://master.php.net/note/edit/77928
Del: integrated -- https://master.php.net/note/delete/77928/integrated
Del: useless -- https://master.php.net/note/delete/77928/useless
Del: bad code -- https://master.php.net/note/delete/77928/bad+code
Del: spam -- https://master.php.net/note/delete/77928/spam
Del: non-english -- https://master.php.net/note/delete/77928/non-english
Del: in docs -- https://master.php.net/note/delete/77928/in+docs
Del: other reasons-- https://master.php.net/note/delete/77928
Reject -- https://master.php.net/note/reject/77928
Search -- https://master.php.net/manage/user-notes.php