Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!uwvax!oddjob!gargoyle!ihnp4!cuae2!killer!academ!uhnix1!sugar!peter From: peter@sugar.UUCP (Peter da Silva) Newsgroups: comp.sys.amiga Subject: Re: "kill" Message-ID: <581@sugar.UUCP> Date: Fri, 28-Aug-87 11:19:09 EDT Article-I.D.: sugar.581 Posted: Fri Aug 28 11:19:09 1987 Date-Received: Sun, 30-Aug-87 08:58:17 EDT References: <1708@amiga.amiga.UUCP> Organization: Sugar Land UNIX - Houston, TX Lines: 18 Keywords: memory fragmentation Summary: A humble suggestion. Isn't there a "end task" entry in the task structure? Is that entry called in a way compatible with 'C'? If not, how much glue would you need? Can't you implement a "kill" program that calls this routine? The other thing you need to do then is add a "set kill action" routine to the 'C' library that sticks the address of a specified routine into that slot (this routine, of course, has to end with a terminate task call...)? That's much better than having to watch for SIGB_CTRLC all through your code. Existing tasks (which presumably just "kill myself") would leave junk all over the place... but at least they'd be gone. This would also take care of nerds who forget to make sure they call their cleanup routines before exiting. -- -- Peter da Silva `-_-' ...!seismo!soma!uhnix1!sugar!peter -- U <--- not a copyrighted cartoon :->