home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9542 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.3 KB

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