Killing processes
Neil Todd at UK.AC.MAN.CS.UX
neil at man.psy.UUCP
Wed Feb 5 23:39:20 AEST 1986
Thanks to everybody who replied to my query about killing processes.
There seem to be a number of schools of thought on this matter :-
1) Send a STOP to the process, then kill it at your leisure.
2) If you're using >= 4.2, renice the offending user and processes
down to 20, this gives you more time to catch processes that
are busy forking.
The trouble with these two is that you've still got to do a "ps",
which was the thing that was bugging me in the first place -
especially if the system is slow.
3) Use something along the lines of the zap program given in
"The Unix Programming Environment", this does the "ps" for
for and asks you process by process whether you want to kill
them off.
4) Introduce a new system call that can "kill-by-uid". This is
nice and quick, but will kill off EVERY process belonging
to that uid.
I've opted for a combination of 3 and 4. The new system call went
in with very little effort, thanks to Ken Lalonde at University of
Waterloo for the basic code for 4.2.
Neil Todd
JANET:- neil at uk.ac.man.cs.ux
UUCP :- ...!mcvax!ukc!man.cs.ux!neil
ARPA :- neil%uk.ac.man.cs.ux at ucl.cs.arpa
[ Please use the ARPA route rather than UUCP if you can]
More information about the Comp.unix.wizards
mailing list