*
* Author: S. Piccardi Dec. 2002
*
- * $Id: SigHand.c,v 1.6 2003/05/06 11:29:16 piccardi Exp $
- *
*****************************************************************************/
-#include <errno.h> /* error simbol definitions */
-#include <stdio.h> /* standard I/O functions */
-#include <signal.h> /* signal handling declarations */
-#include <sys/types.h>
-#include <sys/wait.h>
+#include <errno.h> /* error definitions and routines */
+#include <stdio.h> /* standard I/O library */
+#include <signal.h> /* signal constants, types and functions */
+#include <sys/types.h> /* primitive system data types */
+#include <sys/wait.h> /* process termination constants and functions */
#include "Gapil.h"
#include "macros.h"
* 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)
{
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 */