summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1998-02-09 14:16:41 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:02 +0100
commit1c08ed0dc8fef3a7b844b02676aa0418ebce00b5 (patch)
tree42869d21877513f0f1a69c3c1d3e111e571100ce
parent0bb130a5476691071c783eea3a175cd4b3a05731 (diff)
reset list of child processes after fork; fixes `{ls & wait} |cat' bug
-rw-r--r--wait.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wait.c b/wait.c
index d799494..73f2465 100644
--- a/wait.c
+++ b/wait.c
@@ -30,6 +30,7 @@ extern pid_t rc_fork() {
/* NOTREACHED */
case 0:
forked = TRUE;
+ plist = 0;
sigchk();
return 0;
default: