Date: Thu, 3 Jul 1997 18:33:38 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.pp.ru> To: Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de> Cc: current@FreeBSD.ORG Subject: Re: ppp & HUP. Message-ID: <Pine.BSF.3.96.970703182438.1026A-100000@nagual.pp.ru> In-Reply-To: <19970703074308.ML07825@uriah.heep.sax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 3 Jul 1997, J Wunsch wrote: > SIGHUP should be sent to all process groups associated with tty lines. > clean_ttys() does this. So i think we should remove the SIGHUP salute Really? As I see, clean_ttys() kills only changed/listed in /etc/ttys stuff, not all processes. Process can open device and make it control terminal bypassing /etc/ttys completely. > that's being sent in death(), and replace it with a call to > clean_ttys(). This will gracefully log off all tty-line associated > process groups, without blatantly reconfiguring all daemons. Good idea, but I don't see how clean_ttys() stuff can help here. > Alternatively, the loop in death() should examine whether the process > is in the list of active tty line process group leaders, and only > SIGHUP them. It is the same approach, so question is: how to find from init all processes with have control terminals? I see only kvm-like way which not sounds good... If we not find easy way to do it, maybe simple remove HUP sending? -- Andrey A. Chernov <ache@null.net> http://www.nagual.pp.ru/~ache/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970703182438.1026A-100000>