Varie correzioni, completata revisione capitolo sull'I/O su file
[gapil.git] / listati / hand_sigchild.c
index 2ae8cc61f375eaa361d3f4581cc283afd63fc653..aa8d4d4e55dca0db68b74db5b1aaaf14edbb9366 100644 (file)
@@ -9,10 +9,7 @@ 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));
+    } while (pid > 0);
     /* restore errno value */
     errno = errno_save;
     /* return */