From cd0bc860f8d4f4529ec8a200503fdf519d7df2cc Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 5 Apr 1997 22:06:14 +0000 Subject: [PATCH] correct call to `waitpid' git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1549 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appl/ftp/ftp/cmds.c b/appl/ftp/ftp/cmds.c index 0fe668c8d..9bbd93a5a 100644 --- a/appl/ftp/ftp/cmds.c +++ b/appl/ftp/ftp/cmds.c @@ -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);