Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: net.unix-wizards Subject: Re: System V and SIGCLD Message-ID: <863@brl-smoke.ARPA> Date: Thu, 15-May-86 00:17:30 EDT Article-I.D.: brl-smok.863 Posted: Thu May 15 00:17:30 1986 Date-Received: Sun, 25-May-86 11:42:09 EDT References: <709@cheviot.uucp> <211@altos86.altos86.UUCP> Reply-To: gwyn@brl.ARPA Organization: Ballistic Research Lab (BRL) Lines: 10 In article <211@altos86.altos86.UUCP> andy@altos86.UUCP (Andy Hatcher) writes: >P.S. I've always been told that it is a bad idea to put printfs in >a signal handling routine. The signal handler is called asyncronously >and if you use stdio both inside and outside the signal handler you >could make it very confused. UNIX System V Release 2 tries very hard to make stdio support usage from inside signal catchers. I think this was a big mistake, as it turned Dennis's clean stdio source code into a complicated mess.