From owner-freebsd-current Thu Jul 3 07:34:35 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA12680 for current-outgoing; Thu, 3 Jul 1997 07:34:35 -0700 (PDT) Received: from nagual.pp.ru (ache.relcom.ru [194.58.229.133]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA12672 for ; Thu, 3 Jul 1997 07:34:27 -0700 (PDT) Received: (from ache@localhost) by nagual.pp.ru (8.8.6/8.8.5) id SAA01071; Thu, 3 Jul 1997 18:33:40 +0400 (MSD) Date: Thu, 3 Jul 1997 18:33:38 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= To: Joerg Wunsch cc: current@FreeBSD.ORG Subject: Re: ppp & HUP. In-Reply-To: <19970703074308.ML07825@uriah.heep.sax.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 http://www.nagual.pp.ru/~ache/