Path: utzoo!utgpu!watserv1!watmath!att!rutgers!cs.utexas.edu!uunet!cbmvax!ag From: ag@cbmvax.commodore.com (Keith Gabryelski) Newsgroups: comp.unix.questions Subject: Re: How do you handle while(1) fork(); ? Message-ID: <13220@cbmvax.commodore.com> Date: 15 Jul 90 21:44:04 GMT References: <1655@yenta.alb.nm.us> <3651@auspex.auspex.com> Reply-To: ag@cbmvax (Keith Gabryelski) Organization: Commodore-Amiga Unix; West Chester, PA Lines: 17 In article <3651@auspex.auspex.com> guy@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