🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #69

Re: suicidal kill command ?

#69
From: Stephen Riehm
Date: Fri, 23 Oct 1992 11:58
30 lines
1885 bytes
guenther@stolaf.edu (Philip A Guenther) writes:

>In article <1c7cd5INNk5l@coral.bucknell.edu> mccauley@bucknell.edu (robert mccauley `93) writes:

>	   How can you make the kill command suicidal?  I would 
>   like to be able to kill all processes belonging to me, in effect 
>   to log out.  kill -9 0 doesn't kill its own process.

on some systems, you have the option to kill all ancestors of a
process by putting a - in front of the process number. This has the
nice effect that a 'kill -9 -1' (all descendants of init (which inherits
all lost processes and is also the indirect parent of all your
processes)). This has the effect of trying to kill almost every process on
the system (yes, don't do this if you are root!), the end result being
that all of your processes are killed, and no-one else is effected due
to permissions restrictions.

This doesn't work on all systems but from memory it works on hp-ux (HP),
umax (encore), dynix (sequent), and whatever the pyramid OS is called.
I don't think it works on sun's (but I am quite likely to be wrong on
this).

catchya

-----------------------------------------------------------------
Stephen Riehm		Configuration Management	   _-_|\ 
smr@pki-nbg.philips.de	Philips Kommunikations Industrie  /     \
Work: +49 911 526 2975	N|rnberg, Germany		  \_.-.*/
Fax:  +49 911 526 2095	"I was there, now I am here!"	       v 
"My company speaks another language, I CAN'T speak on its' behalf"
Technical Details
Message-ID: <smr.719841508@hitkw14>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!pki-nbg!hitkw14!smr
References: <1c7cd5INNk5l@coral.bucknell.edu> <GUENTHER.92Oct22220141@amcl12.stolaf.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!pki-nbg!hitkw14!smr
From: smr@pki-nbg.philips.de (Stephen Riehm)
Newsgroups: comp.unix.shell
Subject: Re: suicidal kill command ?
Message-ID: <smr.719841508@hitkw14>
Date: 23 Oct 92 11:58:28 GMT
References: <1c7cd5INNk5l@coral.bucknell.edu> <GUENTHER.92Oct22220141@amcl12.stolaf.edu>
Sender: news@pki-nbg.philips.de
Reply-To: smr@pki-nbg.philips.de
Lines: 30