Re: cvs: php4 /ext/standard file.c

From: Date: Fri, 22 Dec 2000 17:43:59 +0000
Subject: Re: cvs: php4 /ext/standard file.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3233@lists.php.net to get a copy of this message
> Uhm, I obviously meant that if the process doesn't get terminated. Not on > all systems do you get a signal if the disk is full. On Linux as far as I > remember, write() returns an error code. Not that this has anything to do > with what I said in the first place. On systems which send you a signal > you'll also get a signal in both cases. Andi, would you mind educating yourself before making further comments? "On Linux as far as I remember, .." does not sound as if you are really familiar with the semantics of write(2). The API you are proposing has one problem: You cannot detect reliably why write() did not write out as many bytes as you specified. You cannot tell reliably whether retrying is necessary (write only returns -1 and sets errno to EINTR, if it has not written a single byte yet), or whether it is harmful (SIGXFSZ). - Sascha

« previous php.cvs (#3233) next »