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: Derek Robert Price
Subject: Re: Possible race in pserver leading to broken pipe error?
Date: Wed, 11 Feb 2004 12:56:46 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Larry Jones wrote:

>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.


Except the close-on-exec flag isn't shared.  And closing one dup'd file
descriptor does not close the other.  My man pages and what I could find
via the recent opengroup link you sent, only list the close-on-exec flag
as being maintained separately.  Is there anything else?

Derek

- --
                *8^)

Email: address@hidden

Get CVS support at <http://ximbiot.com>!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org

iD8DBQFAKmzdLD1OTBfyMaQRAjyOAJ9dNvQ9ccvzlSF3Okpe6BEZ2ZDpggCg0Tr6
w9+3cRcLMcIS8WWMlM9HCJs=
=XPFD
-----END PGP SIGNATURE-----






reply via email to

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