Date: Mon, 27 Jan 2003 17:58:29 +0100 From: phk@freebsd.org To: "Peter Edwards" <pmedwards@eircom.net> Cc: freebsd-current@freebsd.org Subject: Re: Opening /dev/tty in session leader after controlling terminal is revoked causes panic. Message-ID: <23745.1043686709@critter.freebsd.dk> In-Reply-To: Your message of "Mon, 27 Jan 2003 16:49:45 GMT." <20030127164951.4B78643ED8@mx1.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20030127164951.4B78643ED8@mx1.FreeBSD.org>, "Peter Edwards" writes: >> >The problem is in kern/tty_tty.c:ctty_clone. It's assuming that if the process >> >has its P_CONTROLT flag set, then it's session has a valid vnode for it's >> >controlling terminal. This doesn't hold if the terminal was revoked. >Yes, this patch also fixes the problem. OK, committed! -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23745.1043686709>