While thumbing through W.R.Stevens� "Unix Network Programming" I found
the following which should explain everything (except the
platform-differences):
"What happens is the �read� returns zero (end of file) to the daemon
every time a client porcess terminates, if no other clients have the
FIFO open for writing. [..] To avoid this, a useful technique is for the
daemon to open the FIFO two times -- once for reading and once for
writing. [..] By having the FIFO always open for writing [..] the reads
to not return an EOF, but wait for the next client request."

This solved the problem.
-- 
"I came out of it dead broke, without a house, without anything, except
a girlfriend and a knowledge of Unix." "Well, that�s something. Normally
those two are mutually exclusive." N. Stephenson, "Cryptonomicon"

S/MIME Cryptographic Signature

Reply via email to