Background processes on logout
Jonathan I. Kamens
jik at athena.mit.edu
Fri Feb 22 14:59:53 AEST 1991
In article <1991Feb21.164300.3596 at sbcs.sunysb.edu>, dfraser at 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 at Athena.MIT.EDU Allston, MA 02134
Office: 617-253-8085 Home: 617-782-0710
More information about the Comp.unix.questions
mailing list