Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!sdrc!scjones From: scjones@sdrc.UUCP (Larry Jones) Newsgroups: comp.unix.questions Subject: SYS V SIGCLD Handling Message-ID: <957@sdrc.UUCP> Date: 19 Nov 89 22:59:40 GMT Organization: SDRC, Cincinnati Lines: 26 Consider the following simple program: #include handler() { signal(SIGCLD, handler); } main() { signal(SIGCLD, handler); if (fork() == 0) exit(0); } When I run this on my Sys Vr3.0 system, it goes into recursive death. As soon as the handler calls signal to reestablish itself, it is immediately reinvoked. Am I doing something wrong, is my Sys V broken, or is Sys V just generally broken? ---- Larry Jones UUCP: uunet!sdrc!scjones SDRC scjones@SDRC.UU.NET 2000 Eastman Dr. BIX: ltl Milford, OH 45150-2789 AT&T: (513) 576-2070 "You know how Einstein got bad grades as a kid? Well MINE are even WORSE!" -Calvin