From owner-cvs-src@FreeBSD.ORG Sat Sep 23 14:44:16 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F00816A40F; Sat, 23 Sep 2006 14:44:16 +0000 (UTC) (envelope-from mbr@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0294743D72; Sat, 23 Sep 2006 14:44:15 +0000 (GMT) (envelope-from mbr@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8NEiFv8077733; Sat, 23 Sep 2006 14:44:15 GMT (envelope-from mbr@repoman.freebsd.org) Received: (from mbr@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8NEiF9u077732; Sat, 23 Sep 2006 14:44:15 GMT (envelope-from mbr) Message-Id: <200609231444.k8NEiF9u077732@repoman.freebsd.org> From: Martin Blapp Date: Sat, 23 Sep 2006 14:44:15 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern tty_tty.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Sep 2006 14:44:16 -0000 mbr 2006-09-23 14:44:15 UTC FreeBSD src repository Modified files: sys/kern tty_tty.c Log: If /dev/tty gets opened after your controlling terminal has been revoked you can't call tty_clone afterwords. OpenBSD and NetBSD both fail the open call in that case, so we should do so as well. This can be done in ctty_clone by returning with *dev==NULL. Admittedly this causes open to return ENOENT, instead of ENXIO as on the other BSDs, but this way requires the least touching of code. Submitted by: Nate Eldredge PR: 83375 MFC: 1 week Revision Changes Path 1.58 +5 -1 src/sys/kern/tty_tty.c