diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/login/login.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 9ded0c0..5eb60fb 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -506,8 +506,9 @@ main(int argc, char *argv[]) * Parent: wait for child to finish, then clean up * session. */ + int status; setproctitle("-%s [pam]", getprogname()); - wait(NULL); + waitpid(pid, &status, 0); bail(NO_SLEEP_EXIT, 0); } |