Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Cristiano Lincoln Mattos" To: Subject: Old problem: Socket handles duplicated twice after fork Date: Fri, 23 Aug 2002 10:49:00 -0300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal 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/