Date: Sat, 23 Sep 2006 14:44:15 +0000 (UTC) From: Martin Blapp <mbr@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern tty_tty.c Message-ID: <200609231444.k8NEiF9u077732@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <nge@cs.hmc.edu> PR: 83375 MFC: 1 week Revision Changes Path 1.58 +5 -1 src/sys/kern/tty_tty.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609231444.k8NEiF9u077732>