delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/17/04:31:31

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 17 Jul 2001 10:30:48 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: data in socketpair() channel lost if writer closes or exits without shutting down
Message-ID: <20010717103048.B15396@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20010713181435 DOT 3695 DOT qmail AT lizard DOT curl DOT com> <20010713202146 DOT B11377 AT redhat DOT com> <20010716025220 DOT 23701 DOT qmail AT lizard DOT curl DOT com> <20010716095258 DOT P25442 AT cygbert DOT vinschen DOT de> <20010716180010 DOT 2309 DOT qmail AT lizard DOT curl DOT com> <20010716215405 DOT F25442 AT cygbert DOT vinschen DOT de> <20010716220033 DOT E5607 AT redhat DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010716220033.E5607@redhat.com>; from cgf@redhat.com on Mon, Jul 16, 2001 at 10:00:33PM -0400

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 AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019