lkml.org 
[lkml]   [1996]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: funny behaviour of shutdown
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.


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:8.485 / U:1.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site