Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: msnyder@redhat.com, gdb-patches@sources.redhat.com, drow@false.org
Subject: Re: [RFA] Linux Checkpoints, take 3
Date: Tue, 27 Dec 2005 15:40:00 -0000	[thread overview]
Message-ID: <ud5jjznxb.fsf@gnu.org> (raw)
In-Reply-To: <200512261533.jBQFXCwt001363@elgar.sibelius.xs4all.nl> (message 	from Mark Kettenis on Mon, 26 Dec 2005 16:33:12 +0100 (CET))

> Date: Mon, 26 Dec 2005 16:33:12 +0100 (CET)
> From: Mark Kettenis <mark.kettenis@xs4all.nl>
> CC: gdb-patches@sources.redhat.com, drow@false.org
> 
> > +       /* Now save the 'state' (file position) of all open file descriptors.
> > + 	 Unfortunately fork does not take care of that for us...  */
> 
> Hmm, fork(2) clones it file descroptors but both file descriptors
> refer to the same open file description.  Nasty.  Wonder whether it'd
> be possible to copy the open file descriptorions too.

`fork' does the equivalent of `dup', AFAIK, so it cannot copy the
system file table entry to which those descriptors point.  If it did
copy the entries, redirection would stop working.


  reply	other threads:[~2005-12-26 18:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-24 16:32 Michael Snyder
2005-12-24 17:02 ` Eli Zaretskii
2005-12-26 18:58   ` Daniel Jacobowitz
2005-12-26 19:27     ` Eli Zaretskii
2005-12-27 15:38 ` Mark Kettenis
2005-12-27 15:40   ` Eli Zaretskii [this message]
2006-01-03 23:54   ` Michael Snyder
2006-01-04 19:16     ` Mark Kettenis
2006-01-04 19:36       ` Michael Snyder
2006-01-04  1:49   ` Michael Snyder

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=ud5jjznxb.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=drow@false.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=mark.kettenis@xs4all.nl \
    --cc=msnyder@redhat.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox