(linux_test_for_tracefork): Don't leave zombie
authorNick Roberts <nickrob@snap.net.nz>
Sat, 16 Sep 2006 09:48:12 +0000 (09:48 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sat, 16 Sep 2006 09:48:12 +0000 (09:48 +0000)
process.

gdb/linux-nat.c

index d9e5726218119cd7160f741436ebaea26498c6c2..584bffa6c5e4e9acc5fc6f39bf0ec59c4514f3eb 100644 (file)
@@ -276,6 +276,7 @@ linux_test_for_tracefork (int original_pid)
          ret = ptrace (PTRACE_KILL, second_pid, 0, 0);
          if (ret != 0)
            warning (_("linux_test_for_tracefork: failed to kill second child"));
+         my_waitpid (second_pid, &status, 0);
        }
     }
   else
This page took 0.026666 seconds and 4 git commands to generate.