note 75230 added to function.posix-mkfifo

From: Date: Fri, 18 May 2007 21:12:31 +0000
Subject: note 75230 added to function.posix-mkfifo
Groups: php.notes 
Request: Send a blank email to php-notes+get-126698@lists.php.net to get a copy of this message
Note (quoted from man 7 pipe on debian linux): "On some systems (but not Linux), pipes are bidirectional: data can be transmitted in both directions between the pipe ends. According to POSIX.1-2001, pipes only need to be unidirectional. Portable applications should avoid reliance on bidirectional pipe semantics." Linux pipes are NOT bidirectional. Also, it appears to me that the use of fifo (named) pipes in php is pretty pointless as there appears to be NO way of determining whether opening (let alone reading) from it will block. stream_select SHOULD be able to accomplish this, unfortunatly you cannot get to this point because even trying to OPEN a pipe for read will block until there is a writer. I even tried to use popen("cat $name_of_pipe", 'r'), and even it blocked until it was opened for write by another process. ---- Server IP: 64.71.164.2 Probable Submitter: 69.26.240.93 ---- Manual Page -- http://www.php.net/manual/en/function.posix-mkfifo.php Edit -- https://master.php.net/note/edit/75230 Del: integrated -- https://master.php.net/note/delete/75230/integrated Del: useless -- https://master.php.net/note/delete/75230/useless Del: bad code -- https://master.php.net/note/delete/75230/bad+code Del: spam -- https://master.php.net/note/delete/75230/spam Del: non-english -- https://master.php.net/note/delete/75230/non-english Del: in docs -- https://master.php.net/note/delete/75230/in+docs Del: other reasons-- https://master.php.net/note/delete/75230 Reject -- https://master.php.net/note/reject/75230 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126698) next »