Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watmath.UUCP Path: utzoo!watmath!kwlalonde From: kwlalonde@watmath.UUCP (Ken Lalonde) Newsgroups: net.unix-wizards Subject: Re: fork timing hole and runaway children Message-ID: <16232@watmath.UUCP> Date: Tue, 20-Aug-85 22:44:12 EDT Article-I.D.: watmath.16232 Posted: Tue Aug 20 22:44:12 1985 Date-Received: Sat, 24-Aug-85 00:16:50 EDT References: <541@unisoft.UUCP> <671@cyb-eng.UUCP> <546@unisoft.UUCP> <356@rti-sel.UUCP> Distribution: net Organization: U of Waterloo, Ontario Lines: 10 Every term, at least one student writes one of those charming programs like "for (;;) fork();". Shooting them manually is tiresome and sometimes impossible if the cancer has spread, so we added a new system call: zonk(uid, signal) Sends the given signal to all processes owned by uid, returning a count of the number of processes found. You can type "zonk fool" to send SIGKILL to all of fool's processes. If there is interest, I'll post the code.