Mail Archives: cygwin-developers/2002/07/15/07:22:03
----- Original Message -----
From: "Corinna Vinschen" <vinschen AT redhat DOT com>
To: <cygwin-developers AT cygwin DOT com>
Sent: Monday, July 15, 2002 9:10 PM
> Perhaps that's not even needed. We already have a couple of methods
> which are involved when duplicating handles between processes, namely
> dup(), fixup_before_fork(), fixup_after_fork(), fixup_after_exec().
Hmm, the difference being that these methods are all synchronous. generic
passing of file descriptors is not synchronous.
> Basically they are only restricted in their functionality since they
> only get the *parent* process handle. If we generalize this stuff
> to get a *source* and a *destination* process handle instead, the
> whole stuff would be available for situations besides fork/exec...
Remember that we don't know the destination process handle for this
scenario, all we know is that we need to prepare the fd for *some* process
to recieve.
Rob
- Raw text -