Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uwmcsd1!marque!uunet!mcvax!hp4nl!orcenl!bengsig From: bengsig@orcenl.uucp (Bjorn Engsig) Newsgroups: comp.unix.wizards Subject: Re: Autologout of unused terminals Summary: signal(SIGHUP,handler) Message-ID: <213.nlunix6@orcenl.uucp> Date: 30 Nov 88 08:40:00 GMT References: <201.nlunix6@orcenl.uucp> <8978@smoke.BRL.MIL> <2682@sultra.UUCP> <9012@smoke.BRL.MIL> Organization: ORACLE Europe, The Netherlands Lines: 16 In article <9012@smoke.BRL.MIL>, gwyn@smoke.BRL.MIL (Doug Gwyn ) writes: > >why it's such a terrible sin to kill these jobs. > > Because any automated scheme you come up is likely to ALSO kill off > some perfectly legitimate jobs. > What I asked for in the first place was just a program to send SIGHUP to processes, which seemed to be doing nothing. There will of course always be cases where this 'seems' is wrong, but a process that wants to live could easily do signal(SIGHUP,handler) (or nohup). When doing this, you show that you are aware of the possible 'auto-killing', and you will be sure not to be killed. This is also a nice thing to do on a modem line. -- Bjorn Engsig, ORACLE Europe \ / "Hofstaedter's Law: It always takes ..!uunet!mcvax!orcenl!bengsig X longer than you expect, even if you phone: +31 21 59 56 411 / \ take into account Hofstaedter's Law"