2009/11/21 Christopher Faylor <cgf-use-the-mailinglist-ple...@cygwin.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? > Yes, I guess. those connections is in CLOSE_WAIT state > 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 > >
-- 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