Path: utzoo!utgpu!watserv1!watmath!att!rutgers!cs.utexas.edu!uunet!pdn!tscs!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.unix.questions Subject: Re: How do you handle while(1) fork(); ? Message-ID: <269DD1EB.5DFB@tct.uucp> Date: 13 Jul 90 13:51:39 GMT References: <841@massey.ac.nz> Organization: ComDev/TCT, Sarasota, FL Lines: 15 According to ARaman@massey.ac.nz (A.V. Raman): >Is there any way to kill all instances of a process that has the >following piece of code in it without having to bring the system down? > > while (1) > fork(); If they're not daemon processes, you can kill the process group they belong to. In addition, modern Unix versions have limits on the number of processes that can be created by any one user. Be sure that this number is quite a bit smaller than the system-wide process count. -- Chip, the new t.b answer man ,