info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible race in pserver leading to broken pipe error?


From: Larry Jones
Subject: Re: Possible race in pserver leading to broken pipe error?
Date: Tue, 10 Feb 2004 17:09:03 -0500 (EST)

Derek Robert Price writes:
> 
> Yep, it just needed fflushes.  Working patch attached.  Comments before
> I commit?

fflush()/close() is a no-no -- you want fclose() instead.  Once you've
attached a stream to a file descriptor, you have to be very careful
about what you do to the file descriptor -- it's best to only use the
stream from then on.

-Larry Jones

I kind of resent the manufacturer's implicit assumption
that this would amuse me. -- Calvin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]