The upper while loop has already recycled child process, so the if
statement has never executed as expected, fix it. MFC after: 3 days
This commit is contained in:
parent
02c788a24e
commit
a964714f51
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172749
@ -469,9 +469,7 @@ main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
child_pgrp = getpgid(child_pid);
|
tcsetpgrp(STDERR_FILENO, getpgrp());
|
||||||
if (tcgetpgrp(STDERR_FILENO) == child_pgrp)
|
|
||||||
tcsetpgrp(STDERR_FILENO, getpgrp());
|
|
||||||
if (pid == -1)
|
if (pid == -1)
|
||||||
err(1, "waitpid");
|
err(1, "waitpid");
|
||||||
PAM_END();
|
PAM_END();
|
||||||
|
Loading…
Reference in New Issue
Block a user