Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!apple!oliveb!tymix!cirrusl!sunstorm!dhesi From: dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) Newsgroups: comp.unix.questions Subject: Re: How do you handle while(1) fork(); ? Message-ID: <2036@cirrusl.UUCP> Date: 14 Jul 90 22:45:14 GMT References: <841@massey.ac.nz> <1990Jul11.115612.2155@aucs.uucp> <4261@uqcspe.cs.uq.oz.au> Sender: news@cirrusl.UUCP Organization: Cirrus Logic Inc. Lines: 10 On BSD systems, at least, one way to recover from a "while(1) fork();" situation is to log in as the offending user and execute my die/suicide program, which in essence is: kill (-1, SIGTERM); /* give each process a software termination signal */ sleep (3); /* and give it 3 seconds to clean up */ kill (-1, SIGKILL); /* then kill each process with extreme prejudice */ -- Rahul Dhesi UUCP: oliveb!cirrusl!dhesi