Old problem: Socket handles duplicated twice after fork

Cristiano Lincoln Mattos lincoln@tempest.com.br
Fri Aug 23 09:47:00 GMT 2002


Hi,

	I've been having a few problems with Cygwin and a perl
script that listens on a port and executes an external
program in response to the data read from a connection.  The
script can't close the connection socket after executing the
external program.. it only closes when the external prog closes. After
debugging it with the componen'ts author (POE - Rocco Caputo),
we think that the program that's being executed is somehow 
getting a copy of the script's filehandle, mucking up perls
refcounting.

	I check around for this, and sure enough, there were reports
of this behaviou or cygwin, in posts from last may and june with
the subject "Socket handles duplicated twice after fork". A few
of them were:

		http://www.cygwin.com/ml/cygwin/2002-06/msg00087.html
		http://sources.redhat.com/ml/cygwin/2002-05/msg00544.html
		http://www.cygwin.com/ml/cygwin/2002-05/msg00735.html
		http://www.cygwin.com/ml/cygwin/2002-06/msg00149.html

	Since the thread didn't seem to reach a definitive conclusion
or sponsor a patch, i'd like to know if anyone else has had this
problem, or if there is by now a patch or workaround for it?  I'm
using CYGWIN_NT-5.0 1.3.12(0.54/3/2), Perl 5.6.1, Windows 2K Professional
SP2.  

	Thanks ! 

Cristiano Lincoln Mattos



--
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