This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Patch to pass file descriptors
- From: Corinna Vinschen <cygwin-patches at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Mon, 1 Jul 2002 10:04:14 +0200
- Subject: Re: Patch to pass file descriptors
- References: <Pine.LNX.4.33.0206291214370.4768-100000@this>
On Sat, Jun 29, 2002 at 12:22:04PM -0400, David Euresti wrote:
> So here are three reasons to use the cygserver to pass file descriptors.
>
> #1 Security - as has been mentioned. Althought currently the patch has no
> security it can easily be added.
>
> #2 My application is not allowed to block on anything. I
> can't send a file descriptor and then block this changes the whole
> semantics of sendmsg. I call select and it tells me I can write but then
> my call to sendmsg blocks? That is really bad.
A change in the concept would eliminate that. The sender process
could start a thread and duplicate all file handlers/HANDLEs. So
the main thread in the sender isn't blocked. The receiver is blocked
anyway since it has to wait until all file handle information has
been correctly transmitted/regenerated.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.