X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FSigHand.c;h=a37fac5ab28daa68412e392ce4e07f431a5b7fcf;hp=3fb588a99458b1903cded34effa155f5159b6504;hb=fa15a3f1ecd64efd8440e46d398fd9976abc3d25;hpb=7b6b988cdddf6e996eb88d02bd13bbe7e2936d73 diff --git a/sources/SigHand.c b/sources/SigHand.c index 3fb588a..a37fac5 100644 --- a/sources/SigHand.c +++ b/sources/SigHand.c @@ -22,14 +22,12 @@ * * Author: S. Piccardi Dec. 2002 * - * $Id: SigHand.c,v 1.6 2003/05/06 11:29:16 piccardi Exp $ - * *****************************************************************************/ -#include /* error simbol definitions */ -#include /* standard I/O functions */ -#include /* signal handling declarations */ -#include -#include +#include /* error definitions and routines */ +#include /* standard I/O library */ +#include /* signal constants, types and functions */ +#include /* primitive system data types */ +#include /* process termination constants and functions */ #include "Gapil.h" #include "macros.h" @@ -97,7 +95,6 @@ inline SigFunc * SignalRestart(int signo, SigFunc *func) * Generic handler for SIGCHLD signal * * Simone Piccardi Dec. 2002 - * $Id: SigHand.c,v 1.6 2003/05/06 11:29:16 piccardi Exp $ */ void HandSigCHLD(int sig) { @@ -110,10 +107,10 @@ void HandSigCHLD(int sig) do { errno = 0; pid = waitpid(WAIT_ANY, &status, WNOHANG); - if (pid > 0) { - debug("child %d terminated with status %x\n", pid, status); - } - } while ((pid > 0) && (errno == EINTR)); +// if (pid > 0) { +// debug("child %d terminated with status %x\n", pid, status); +// } + } while (pid > 0); /* restore errno value*/ errno = errno_save; /* return */