Hi Matei!
On Tue, 04 Dec 2001, Matei Conovici wrote: > > > > 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 ? > Evident ... doar ca aici nu e o eroare ci, evident, ar fi eun EOF ... --- Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to unsubscribe from this list.
