Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!mcnc!philabs!cmcl2!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn ) Newsgroups: net.unix-wizards Subject: Re: Printing in signal handlers (more on ( alarm(1) == alarm(INFINITY))? Message-ID: <9455@brl-tgr.ARPA> Date: Fri, 22-Mar-85 17:23:46 EST Article-I.D.: brl-tgr.9455 Posted: Fri Mar 22 17:23:46 1985 Date-Received: Tue, 26-Mar-85 05:27:15 EST References: <312@calgary.UUCP> <2175@wateng.UUCP> <542@utcs.UUCP> Organization: Ballistic Research Lab Lines: 4 My recommendation is to do little more than set a flag in the signal catcher and return. Test this flag at appropriate places in the main program control loop. This is much safer than trying to do anything useful from inside a signal catcher.