home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!amdahl!JUTS!diag.amdahl.com!dlbb0
- From: dlbb0@diag.amdahl.com (David Black)
- Newsgroups: comp.os.linux
- Subject: Re: Killing background processes on logout
- Message-ID: <1eLd024I20Yv01@JUTS.ccc.amdahl.com>
- Date: 1 Sep 92 01:37:13 GMT
- References: <1992Aug31.233729.24652@athena.mit.edu>
- Sender: netnews@ccc.amdahl.com
- Organization: Amdahl Corporation, Cupertino, CA
- Lines: 16
-
- In article <1992Aug31.233729.24652@athena.mit.edu>, hammond@kwhpc.caseng.com (Kevin W. Hammond) writes:
- |> My new question would be this: how do you force the exit of background processes
- |> on csh termination? I would really swear up and down that nohup was used to keep
-
- I think kill -0 in your .logout might work, but for sure a one-liner
- that does a ps -aux, greps for your username in the first field, and does
- kill -9s on all of 'em will.
-
- I recall from school daze that only those processes that are still attached to
- the tty are automatically killed on hangup, not those which have detached (say
- "?" in the tty field of ps -x). That held true for a Sequent running Dynix
- (BSD-like) and the NeXT boxes anyway.
-
- --
- David L. Black I/O Diagnostics Development Dial-up LINUX+archives 24 hrs.
- dlbb0@amdahl.com Amdahl Corp., Sunnyvale CA 408-773-0768 V.32bis/HST
-