delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/20/23:15:05

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 20 Nov 2009 23:13:46 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [1.7] Updated: cygwin-1.7.0-65
Message-ID: <20091121041346.GA31247@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20091119094439 DOT GC29173 AT calimero DOT vinschen DOT de> <f4d6f44b0911191814r4653debfu24cbd4afd956f117 AT mail DOT gmail DOT com> <20091120093210 DOT GQ29173 AT calimero DOT vinschen DOT de> <f4d6f44b0911202003j71954bf0lf5b6696acdfe7e7d AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <f4d6f44b0911202003j71954bf0lf5b6696acdfe7e7d@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Sat, Nov 21, 2009 at 12:03:05PM +0800, Huang Bambo wrote:
>Sorry for my bad expression. I mean the fd duplicated by fork() will
>not be close
>by both parent and child.
>The following code listen on port 9999, parent process fork a child to
>handle the
>incoming socket and then close the socket. The child sleep 3 second and close
>the incoming socket. The socket should be closed now but not.

Is this an SO_LINGER situation?

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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