diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2003-02-08 16:11:20 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2003-02-08 16:11:20 +0000 |
| commit | fea1e414dfd9fb72c9a7e879c2bed71493a6db95 (patch) | |
| tree | 169d30b82e21cb2c10108df59e02e8fe414d43b6 /usr.bin | |
| parent | 5ddbc7e1f760d08ccc6404fe75b63c7c43e83996 (diff) | |
Notes
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 9ded0c057381..5eb60fbceeee 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); } |
