LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Roland Kuhn <rkuhn@e18.physik.tu-muenchen.de>
To: Philippe Troin <phil@fifi.org>
Cc: Denis Vlasenko <vda.linux@googlemail.com>, linux-kernel@vger.kernel.org
Subject: Re: O_NONBLOCK setting "leak" outside of a process??
Date: Fri, 2 Feb 2007 13:10:32 +0100	[thread overview]
Message-ID: <E0CFA8EB-F706-49E8-A1D1-7BAF19C8D271@e18.physik.tu-muenchen.de> (raw)
In-Reply-To: <87abzxbhau.fsf@tantale.fifi.org>


[-- Attachment #1.1: Type: text/plain, Size: 1222 bytes --]

Hi Philippe!

On 2 Feb 2007, at 00:15, Philippe Troin wrote:

> Denis Vlasenko <vda.linux@googlemail.com> 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.
>
That's a bug, right? I couldn't find anything to that effect in IEEE  
Std. 1003.1, 2004 Edition...

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.12
GS/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 #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4324 bytes --]

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 186 bytes --]

  reply	other threads:[~2007-02-02 12:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-27 20:52 Denis Vlasenko
2007-01-30  3:40 ` Philippe Troin
2007-02-01 23:00   ` Denis Vlasenko
2007-02-01 23:15     ` Philippe Troin
2007-02-02 12:10       ` Roland Kuhn [this message]
2007-02-02 13:48         ` Guillaume Chazarain
2007-02-02 15:04           ` Roland Kuhn
2007-02-02 18:59             ` Philippe Troin
2007-02-05 10:49               ` bert hubert
2007-02-04  0:55         ` David Schwartz
2007-02-04  1:22           ` Denis Vlasenko
2007-02-04  7:56             ` David Schwartz
2007-02-04 20:11               ` Michael Tokarev
2007-02-04 21:08                 ` David Schwartz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E0CFA8EB-F706-49E8-A1D1-7BAF19C8D271@e18.physik.tu-muenchen.de \
    --to=rkuhn@e18.physik.tu-muenchen.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=phil@fifi.org \
    --cc=vda.linux@googlemail.com \
    --subject='Re: O_NONBLOCK setting "leak" outside of a process??' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).