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

Keith Gabryelski ag at cbmvax.commodore.com
Mon Jul 16 07:44:04 AEST 1990


In article <3651 at auspex.auspex.com> guy at auspex.auspex.com (Guy Harris) writes:
>If you have a "getty" running on a terminal, you should log in as "root"
>on that terminal; your shell uses the same process slot as the "getty",
>and the "reserved" slot probably isn't taken up yet, thus increasing the
>chances that slot will be available for "kill".
>
>Alternatively, if you have a shell where "kill" is a built-in (e.g.  the
>C shell), the "kill" won't require another slot.

Alternately, if kill in not a built-in, you could use:

	$ exec kill -15 -1

Risky because kill will take over the process slot and you will be
logged out but possibly useful to know.

Pax, Keith



More information about the Comp.unix.questions mailing list