Hi Philippe! On 2 Feb 2007, at 00:15, Philippe Troin wrote:
That's a bug, right? I couldn't find anything to that effect in IEEE Std. 1003.1, 2004 Edition...Denis Vlasenko <[email protected]> writes:What share the same file descriptor? MC and programs started from it?All the processes started from your shell share at least fds 0, 1 and 2.I thought after exec() fds atre either closed (if CLOEXEC) or becoming independent from parent process (i.e. it you seek, close, etc your fd, parent would not notice that). Am I wrong?I'm afraid so. Seek position and flags are still shared after an exec.
Ciao, Roland -- TU Muenchen, Physik-Department E18, James-Franck-Str., 85748 Garching Telefon 089/289-12575; Telefax 089/289-12570 -- CERN office: 892-1-D23 phone: +41 22 7676540 mobile: +41 76 487 4482 -- Any society that would give up a little liberty to gain a little security will deserve neither and lose both. - Benjamin Franklin -----BEGIN GEEK CODE BLOCK----- Version: 3.12GS/CS/M/MU d-(++) s:+ a-> C+++ UL++++ P+++ L+++ E(+) W+ !N K- w--- M + !V Y+
PGP++ t+(++) 5 R+ tv-- b+ DI++ e+++>++++ h---- y+++ ------END GEEK CODE BLOCK------
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
Attachment:
PGP.sig
Description: This is a digitally signed message part
- Follow-Ups:
- RE: O_NONBLOCK setting "leak" outside of a process??
- From: "David Schwartz" <[email protected]>
- Re: O_NONBLOCK setting "leak" outside of a process??
- From: "Guillaume Chazarain" <[email protected]>
- RE: O_NONBLOCK setting "leak" outside of a process??
- References:
- O_NONBLOCK setting "leak" outside of a process??
- From: Denis Vlasenko <[email protected]>
- Re: O_NONBLOCK setting "leak" outside of a process??
- From: Philippe Troin <[email protected]>
- Re: O_NONBLOCK setting "leak" outside of a process??
- From: Denis Vlasenko <[email protected]>
- Re: O_NONBLOCK setting "leak" outside of a process??
- From: Philippe Troin <[email protected]>
- O_NONBLOCK setting "leak" outside of a process??
- Prev by Date: Re: Try to fill route cache
- Next by Date: [PATCH 2.6.19.2] SCSI sd: udev accessing an uninitialized scsi_disk results in a crash
- Previous by thread: Re: O_NONBLOCK setting "leak" outside of a process??
- Next by thread: Re: O_NONBLOCK setting "leak" outside of a process??
- Index(es):