killing a process gone bad.

News Administrator news at brian386.uucp
Tue Oct 30 14:27:07 AEST 1990


In article <1990Oct25.185822.11838 at nntp-server.caltech.edu> gwoho at nntp-server.caltech.edu (g liu) writes:
>supose someone ran the following program:
>main()
>{
>int i;
>for (i=0; i<32; i++)
>signal(i,(char *)1);
>while (fork()!=-1)
>;
>}
>
>then ran it. how would i kill it? i could kill one of them, but

If you have super user priviledges, you could:

	kill -9 -1

(at least on SysV).  This has the "unfortunate" side effect of killing darn
near everything on the system, but it should take care of the problem.  Then
you edit /etc/passwd, and change the users password to NONE ;-).

	brian



More information about the Comp.unix.misc mailing list