[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120125214522.7a49cf39@pyramind.ukuu.org.uk>
Date: Wed, 25 Jan 2012 21:45:22 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Jiri Slaby <jslaby@...e.cz>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Greg KH <greg@...ah.com>, LKML <linux-kernel@...r.kernel.org>
Subject: Re: Why are not processes HUPped when they open /dev/console?
On Wed, 25 Jan 2012 22:38:40 +0100
Jiri Slaby <jslaby@...e.cz> wrote:
> Hello,
>
> don't you remember by a chance the reason for this test in __tty_hangup:
> if (filp->f_op->write != tty_write)
>
> The logic there is not to HUP processes that have this tty open via
> /dev/console.
Because if you hang up the console the machine crashes ?
At least that's what used to happen.
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists