How do you handle while(1) fork(); ?

Rahul Dhesi dhesi%cirrusl at oliveb.ATC.olivetti.com
Sun Jul 15 08:45:14 AEST 1990


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 <dhesi%cirrusl at oliveb.ATC.olivetti.com>
UUCP:  oliveb!cirrusl!dhesi



More information about the Comp.unix.questions mailing list