correct call to `waitpid'

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1549 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-04-05 22:06:14 +00:00
parent 1cd2f3eb74
commit cd0bc860f8

View File

@@ -1212,7 +1212,7 @@ shell(int argc, char **argv)
exit(1);
}
if (pid > 0)
while (waitpid(-1, 0, &status) != pid)
while (waitpid(-1, &status, 0) != pid)
;
signal(SIGINT, old1);
signal(SIGQUIT, old2);