Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > cd55f986918c57227820d06560805bef > files > 3

bogl-0.1.18-13.el5.src.rpm

--- bogl-0.1.18/bterm.c.sigchld	2005-09-20 00:44:06.000000000 +0200
+++ bogl-0.1.18/bterm.c	2005-09-20 00:46:01.000000000 +0200
@@ -124,7 +124,7 @@
 void sigchld(int sig)
 {
   int status;
-  if (waitpid(child_pid, &status, WNOHANG)) {
+  if (waitpid(child_pid, &status, WNOHANG) > 0) {
     child_pid = 0;
     /* Reset ownership and permissions of ttyfd device? */
     tcsetattr(0, TCSAFLUSH, &ttysave);