How do you handle while(1) fork(); ?
Chip Salzenberg
chip at tct.uucp
Fri Jul 13 23:51:39 AEST 1990
According to ARaman at 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 <chip at tct.uucp>, <uunet!ateng!tct!chip>
More information about the Comp.unix.questions
mailing list