killing a process gone bad.

g liu gwoho at nntp-server.caltech.edu
Fri Oct 26 04:58:22 AEST 1990


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
then the others multiply until the limit is reached. then one fails,
terminates, and a new one appears, etc. so i have 1000 processes
with constantly changing pids that have too be stopped simultaneously.
any ideas for stopping it?
gwoho.



More information about the Comp.unix.misc mailing list