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);