httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk.vanGulik" <Dirk.vanGu...@jrc.it>
Subject Re: HostAlias...
Date Mon, 01 Apr 1996 16:50:02 GMT
> >       while(n && !r->connection->aborted) {
> >             w=fwrite(&buf[o],sizeof(char),n,c->client);
> >             n-=w;
> >             o+=w;
> >             };
> > 
> > goes OK, but this goes bang
> 
> No it doesn't ... you need something more like:
> 
Well, it does here, because write returns a '-1' and not 
a '0' when it cannot write antyhing anymore.

What I meant was this subtle difference between write() and fwrite()
where once returns a 0 upon a 'cannot write' and the other a '-1'.

Dw.

Mime
View raw message