From owner-freebsd-current@FreeBSD.ORG Fri Jan 18 23:34:39 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 3BC1816A417 for ; Fri, 18 Jan 2008 23:34:39 +0000 (UTC) (envelope-from jesper.louis.andersen@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id B14C913C442 for ; Fri, 18 Jan 2008 23:34:38 +0000 (UTC) (envelope-from jesper.louis.andersen@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so1381652fgg.35 for ; Fri, 18 Jan 2008 15:34:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=QmtamecB+k15HoZatvBqcBTYXTJjHG1LqmBX3dU+dQ8=; b=WbW/z+ISTFITtq7pexTAPkEHajZGU/8TqjAETnSrTQU9lZ76uHSMgKLqA7iEvLcoBWbtCBmLB7feY5nJl72ajwoninUV3pvWr+ZvgQfuzR2ztVjw+NXChaqBdZONZ/ZFg9UlQapeTMA16g35BzaCWzLydVpUWu/EILHI+NpfKCQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Vb5BKdv15PblR9KNfdacLQEXo8A1K/erF808kr6TYS6SjJQl1BOozWA897gzQ+X6KBrCs49rxqZS5v3ry5PW/l9K0iGDv3K1l4pbaKIH5oX3aji59HauB8Ye6MrkhNjbQjDvKKkOa0uRK4omrQWXXsrQjgYpmpB9vqG5/joJgmE= Received: by 10.86.60.15 with SMTP id i15mr3608607fga.28.1200699277689; Fri, 18 Jan 2008 15:34:37 -0800 (PST) Received: by 10.86.60.1 with HTTP; Fri, 18 Jan 2008 15:34:37 -0800 (PST) Message-ID: <56a0a2840801181534t57d24177o7528093c6daa995@mail.gmail.com> Date: Sat, 19 Jan 2008 00:34:37 +0100 From: "Jesper Louis Andersen" To: "Kostik Belousov" In-Reply-To: <20080118120816.GH57756@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 References: <56a0a2840801171617r6ca60b30x9f6cebb12b523c7f@mail.gmail.com> <20080118120816.GH57756@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Fri, 18 Jan 2008 23:34:39 -0000 On Jan 18, 2008 1:08 PM, Kostik Belousov wrote: > 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. > Well, your commit here: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/tty_pty.c.diff?r1=1.155;r2=1.156 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 words: 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. The patch fixes my problem completely. Thanks!