Socket Handles duplicated twice after fork

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Jun 4 04:23:00 GMT 2002


On Mon, Jun 03, 2002 at 02:20:36PM -0400, David E Euresti wrote:
> This is in response to an old post.
> 
> The basic problem is that after a fork the child gets four open socket
> handles instead of only two.  This code shows the problem slightly.  You
> need Process explorer to see the problem.

I have no idea where these handles are coming from since that
is contrary to what Cygwin's socket code is doing.  I've a
workaround for that but better I'd like to know the cause of the
additional handles...

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/



More information about the Cygwin mailing list