Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!amgraf!heitis1!brian386!news From: news@brian386.uucp (News Administrator) Newsgroups: comp.unix.misc Subject: Re: killing a process gone bad. Message-ID: <1990Oct30.032707.1222@brian386.uucp> Date: 30 Oct 90 03:27:07 GMT References: <1990Oct25.185822.11838@nntp-server.caltech.edu> Organization: McCane Consulting Lines: 22 In article <1990Oct25.185822.11838@nntp-server.caltech.edu> gwoho@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