From owner-freebsd-current@FreeBSD.ORG Sat Jan 19 05:21:29 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E11B16A419 for ; Sat, 19 Jan 2008 05:21:29 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay02.kiev.sovam.com (relay02.kiev.sovam.com [62.64.120.197]) by mx1.freebsd.org (Postfix) with ESMTP id 3D79E13C455 for ; Sat, 19 Jan 2008 05:21:29 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.226] (helo=deviant.kiev.zoral.com.ua) by relay02.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JG691-000DBa-72 for current@freebsd.org; Sat, 19 Jan 2008 07:21:27 +0200 Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m0J5LQHa097066; Sat, 19 Jan 2008 07:21:26 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m0J5LQrq097065; Sat, 19 Jan 2008 07:21:26 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 19 Jan 2008 07:21:26 +0200 From: Kostik Belousov To: Jesper Louis Andersen Message-ID: <20080119052126.GK57756@deviant.kiev.zoral.com.ua> References: <56a0a2840801171617r6ca60b30x9f6cebb12b523c7f@mail.gmail.com> <20080118120816.GH57756@deviant.kiev.zoral.com.ua> <56a0a2840801181534t57d24177o7528093c6daa995@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="O5OU7BkHbHh2yz88" Content-Disposition: inline In-Reply-To: <56a0a2840801181534t57d24177o7528093c6daa995@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Scanner-Signature: 4fe2b897d4d72954524b6b73d18f8617 X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 2009 [Jan 18 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: current@freebsd.org Subject: Re: Strange /dev/tty behaviour on 7.0-PRELEASE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2008 05:21:29 -0000 --O5OU7BkHbHh2yz88 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 19, 2008 at 12:34:37AM +0100, Jesper Louis Andersen wrote: > On Jan 18, 2008 1:08 PM, Kostik Belousov wrote: >=20 >=20 > > After your post, I could imagine the almost plausible scenario how to > > get more then one /dev/tty in the listing, but the other behaviour that > > looks like deadlock, isn't. > > >=20 > Well, your commit here: >=20 > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/tty_pty.c.diff?r1=3D1.= 155;r2=3D1.156 >=20 > gratiously provided to me by Peter Wemm solved the problem I had. I think= we > are "talking past each other" with the lockup due to my bad choice of wor= ds: > The kernel did not deadlock, but a process executed after having multiple > tty's made that process hang with the ktrace I posted. The kernel itself > were still running fine though anything in need of /dev/tty would hang. I > hope this clears up the misconceptions. >=20 > The patch fixes my problem completely. Thanks! Thank you for confirming that the problem solved. I will MFC the change shortly. --O5OU7BkHbHh2yz88 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkeRiNUACgkQC3+MBN1Mb4hc1wCfeFykp29np6igqxqABiqRpOkN iIwAn3WkkujuyjH1qV/S/P6B1E5xHsl5 =C5NN -----END PGP SIGNATURE----- --O5OU7BkHbHh2yz88--