Re: funny behaviour of shutdown

really kuznet@ms2.inr.ac.ru (inr-linux-kernel@ms2.inr.ac.ru)
17 Apr 1996 15:15:38 +0400


Theodore Y. Ts'o (tytso@MIT.EDU) wrote:
: It was added deliberately as a security feature. The idea is that when
: the controlling process dies, the tty should get hung up. This prevents
: surviving processes from either maliciously or accidentally being able
: to send/receive characters to the tty. For example, without this the
: next person who is logging in to have access to a leftover program,
: confusing the person and perhaps allowing that user to access files
: owned by the previous user. It's also very useful way of cleaning up
: after users on a dialup server.

: As far as shutdown is concerned, it's clear how this causes a problem.
: What I'd suggest doing to work around this is to reopen the tty after
: kill() call.

Yes, I am aware about it. However, I start halt by exec from
root shell, so that SIGKILL do not kill session leader (i.e. halt)
I do not understand why kernel should hang up this terminal.
Are you sure that it is correct?

Alexey Kuznetsov.