Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!mintaka!bloom-picayune.mit.edu!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.questions Subject: Re: Background processes on logout Message-ID: <1991Feb22.035953.29266@athena.mit.edu> Date: 22 Feb 91 03:59:53 GMT References: <91051.180110F66204@BARILVM.BITNET> <1991Feb21.164300.3596@sbcs.sunysb.edu> Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 24 In article <1991Feb21.164300.3596@sbcs.sunysb.edu>, dfraser@libws1.ic.sunysb.edu (David W Fraser) writes: |> Well I have the opposite problem. I am using HP-UX 7.0, and when I logout my |> background processes continue running. Is there any way I can prevent this? |> Such as adding something to my .logout file? I don't know if HP-UX supports the sending of a signal to "process" -1 in order to send it to all of the processes to which the user is allowed to send signals, but if it does, then you should be able to do "kill -1 -1" in your .logout file. Here's what our man page for the kill system call says about this: If the process number is -1 and the user is the super-user, the signal is broadcast universally except to system processes and the process sending the signal. If the pro- cess number is -1 and the user is not the super-user, the signal is broadcast universally to all processes with the same uid as the user except the process sending the signal. No error is returned if any process could be signaled. -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710