Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site sfsup.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!mhuxm!sftig!sfsup!mjs From: mjs@sfsup.UUCP (M.J.Shannon) Newsgroups: net.unix-wizards Subject: Re: System V and SIGCLD Message-ID: <266@sfsup.UUCP> Date: Mon, 19-May-86 09:04:07 EDT Article-I.D.: sfsup.266 Posted: Mon May 19 09:04:07 1986 Date-Received: Wed, 21-May-86 01:24:07 EDT References: <709@cheviot.uucp> Reply-To: mjs@sfsup.UUCP (M.J.Shannon) Organization: AT&T Information Systems, Summit N.J. Lines: 24 In article <709@cheviot.uucp> lindsay@cheviot.newcastle.ac.uk (Lindsay F. Marshall) writes: >The following code goes into an infinite loop on System V :- > > trap(sig) > int sig; > { /* add something like this: */ int pid = wait(0); /* and you won't get the signal until the next child exits */ > printf("trapped SIGCLD\n"); > signal(SIGCLD, trap); /* reset handler */ > } > >Lindsay F. Marshall, Computing Lab., U of Newcastle upon Tyne, Tyne & Wear, UK -- Marty Shannon UUCP: ihnp4!attunix!mjs Phone: +1 (201) 522 6063 Disclaimer: I speak for no one. "If I never loved, I never would have cried." -- Simon & Garfunkel