Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com Message-Id: <3.0.5.32.20031227182809.0082b100@incoming.verizon.net> X-Sender: vze1u1tg@incoming.verizon.net Date: Sat, 27 Dec 2003 18:28:09 -0500 To: cygwin@cygwin.com From: "Pierre A. Humblet" Subject: Re: Please try the latest snapshot -- it is close to cygwin 1.5.6 In-Reply-To: <20031227174656.GA10264@redhat.com> References: <3.0.5.32.20031226222751.00803100@incoming.verizon.net> <3.0.5.32.20031226211336.00804140@incoming.verizon.net> <20031226204641.GA46362839@hpn5170x> <20031224152951.GA34487383@hpn5170x> <20031223222816.GA23935@redhat.com> <20031224152951.GA34487383@hpn5170x> <3.0.5.32.20031224181524.007c21c0@incoming.verizon.net> <20031224232759.GA12748@redhat.com> <20031226204641.GA46362839@hpn5170x> <3.0.5.32.20031226211336.00804140@incoming.verizon.net> <3.0.5.32.20031226222751.00803100@incoming.verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 12:46 PM 12/27/2003 -0500, Christopher Faylor wrote: > >I missed the 'sh -c' clue in your previous message. Since sh uses >vfork, that indicates a vfork problem. I've checked in some more >changes to deal with this. It seems to do the right thing both with sh >-c and without. It also should have the added benefit of doing the >right thing wrt deallocating the console appropriately since open_fhs >should now track the ctty usecount. This was screwed up before, >apparently even before I started mucking with the tty stuff. > >I sure do hate usage counting. > >cgf Yes, that works fine now, as does bash -c inetd. However when I launch inetd from an rxvt window running bash, or from a Dos window running cygwin.bat with tty, I still see tty handles in inetd. CYGWIN_ME-4.90 hpn5170x 1.5.6(0.108/3/2) 2003-12-27 17:25 i686 unknown unknown Cygwin I ran strace -o trace rxvt -d :0 -e bash followed by inetd in the rxvt window. The trace, available on http://mysite.verizon.net/phumblet/trace, shows that the usecount is off by one. Correct run (bash -c inetd): 159 220557 [main] inetd 34889607 setsid: sid 34889607, pgid 34889607, ctty -1, open_fhs 3 168 220725 [main] inetd 34889607 fhandler_tty_slave::close: /dev/tty2 closed, decremented open_fhs 2, usecount 2 Incorrect run (under rxvt) 167 88587 [main] inetd 34937947 setsid: sid 34937947, pgid 34937947, ctty -1, open_fhs 3 159 88746 [main] inetd 34937947 fhandler_tty_slave::close: /dev/tty2 closed, decremented open_fhs 2, usecount 3 Pierre -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/