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: Wed, 11 Feb 2004 11:48:39 -0500 (EST)

Derek Robert Price writes:
> 
> It's been awhile since I played concurrently with descriptors and
> streams, but I thought I recalled that the only real issue was that they
> were using the same descriptor, so operations on one affected the other,
> as opposed to a dup() of a file descriptor, which keeps track of two
> sets of data about the file, two modes, two pointers, etc.

On the contrary, dup() just gives you another handle to the same open
file description -- the modes, pointers, etc. are *shared* by both fds. 
To get independence, you have to open the file again.

-Larry Jones

I can feel my brain beginning to atrophy already. -- Calvin




reply via email to

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