This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch to pass file descriptors


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]