Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cbits/runProcess.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,11 @@ runInteractiveProcess (char *const args[],
// get the errno of whatever else went wrong instead.
errno = err;
}

// We forked the child, but the child had a problem and stopped so it's
// our responsibility to reap here as nobody else can.
waitpid(pid, NULL, 0);

pid = -1;
}
else if (r != 0) {
Expand Down