Talk:IPC via named pipe: Difference between revisions

Line 19:
: Eh so on OpenBSD opening a fifo for readonly also blocks whole process? If so, what's the behavoir of <code>read()</code> or <code>select()</code>? --[[User:Ledrug|Ledrug]] 23:23, 2 October 2011 (UTC)
:: Yes, <code>open("in", O_RDONLY)</code> also blocks whole process. Other functions like read(), usleep(), poll() and select() seem to block only current thread. --[[User:Kernigh|Kernigh]] 01:05, 3 October 2011 (UTC)
::: Good then. If <code>read()</code> would have also blocked entire process, reading on "in" pipe could have been a serious problem in case of a slow writer because of pipe buffer. As it stands, I guess it's not a problem. --[[User:Ledrug|Ledrug]] 01:19, 3 October 2011 (UTC)
Anonymous user