Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Mon, 16 Jul 2001 22:00:33 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: data in socketpair() channel lost if writer closes or exits without shutting down Message-ID: <20010716220033.E5607@redhat.com> Reply-To: cygwin AT cygwin DOT com 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010716215405.F25442@cygbert.vinschen.de>; from cygwin@cygwin.com on Mon, Jul 16, 2001 at 09:54:05PM +0200 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... cgf -- 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/