From owner-freebsd-questions Fri Feb 24 06:49:50 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id GAA17328 for questions-outgoing; Fri, 24 Feb 1995 06:49:50 -0800 Received: from vhf.dataradio.com (vhf.dataradio.com [198.168.41.55]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id GAA17322 for ; Fri, 24 Feb 1995 06:49:47 -0800 Received: (from root@localhost) by vhf.dataradio.com (8.6.9/8.6.9) id JAA02695; Fri, 24 Feb 1995 09:48:36 -0500 Date: Fri, 24 Feb 1995 09:48:35 -0500 (EST) From: Charlie ROOT To: Terry Lambert cc: freebsd-questions@FreeBSD.org Subject: Re: Odd behaviour in 2.0R In-Reply-To: <9502240050.AA20593@cs.weber.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: questions-owner@FreeBSD.org Precedence: bulk On Thu, 23 Feb 1995, Terry Lambert wrote: > > If they are background tasks, they aren't supposed to die when the user > logs out if they were started from a shell other than sh, or if they > were started in sh with "nohup". Terry, thank you for your prompt reply! Ok, but on FreeBSD 1.1.5.1, and on a SVR3.2 box, all processes die off when the user logs out, including the background ones, unless specifically run with nohup. For example, last night, my X server stopped (I sent a HUP signal to it), but all the programs that were running kept running on unconnected virtual terminals! I am a little bit mystified at the bevahiour of 2.0R, as I can't see it being fit for an internet gateway, especially if users can login and leave programs running simply by running them in the background! The obvious question is: how can I - Make the processes part of the shell's process group so that they properly die when lines are hungup? - Patch the kernel so that all processes associated with a terminal get a HUP signal unless they are -HUPCL? The reason behind this need for the HUP signal is that I've written a user timelimit daemon that is executed for each user as they login, and keeps track of how much online time they use, etc..., and I need it to reliably get a HUP signal when the user logs out so that it can shut itself down. **> This program worked under FreeBSD 1.1.5.1 and SVR3.2! Mystified and confused! -- Andrew Webster Network Manager