This is the mail archive of the cygwin@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]

Re: data in socketpair() channel lost if writer closes or exits without shutting down


On Mon, Jul 16, 2001 at 10:00:33PM -0400, Christopher Faylor wrote:
> On Mon, Jul 16, 2001 at 09:54:05PM +0200, Corinna Vinschen wrote:
> >On Mon, Jul 16, 2001 at 02:00:10PM -0400, Jonathan Kamens wrote:
> >> Or, slightly more complex but slightly more correct, keep track of
> >> whether or not a socket was at some point shared between multiple
> >> processes (either as a result of a fork or as a result of sending a
> >> file descriptor between processes (does Cygwin support that?)).  When
> >> a socket is first shared, we can set SO_LINGER as I described above.
> >> Then, when a socket is closed, check if it was ever shared and call
> >> shutdown if it wasn't.
> >
> >Since Cygwin has currently no "device layer" (though planned for the
> >future) we have no sharing of data between duplicated and inherited
> >file descriptors, unfortunately.
> 
> I wonder if we could kludge something into the delete-on-close queue
> for now...

Hmm, probably...

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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