> Eu am un daemon care citeste din fifo un nr fix de bytes
> (o structura) iar apoi face fork repede, fiul prelucreaza 
> structura iar tatal revine in `read()' pe fifo pentru a prelua
> noi structuri ...
> 
> Mecanismul merge dar, la un moment dat citesc 0 bytes din fifo
> si pipa nu mai e blocanta! (iese imediat din `read()' cu 0 bytes 
> cititi ...

man 2 read

 It is not an error if this number [read bytes] is smaller than the
 number of bytes requested; this may happen for example because fewer
 bytes are actually available right now (maybe because we were close
 to end-of-file, or because we are reading from a pipe, or from a
 terminal), or because read() was interrupted by a signal.

Tratezi erorile ?

> Bogdan

Matei
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui