Jean-Marc Lasgouttes schrieb:
Pavel Sanda <[EMAIL PROTECTED]> writes:
unfortunately - after these few last patches are applied and i send
echo "LYXCMD:test:buffer-write" to pipe file is correctly saved,but CPU load
gets to maximum and stays there.
Details please. What are you doing? It might be because I changed
if (status > 0)
to
if (status >= 0)
I do not know whether read() can return 0, and what that would mean.
You get 0 bytes on EOF.
If your "pipe"-partner closed its file handle you get 0 bytes on read.
Possibly the process receives the signal SIGPIPE.
Stephan
-------------------------------------------------------------------------------