summaryrefslogtreecommitdiff
path: root/usr.bin/login/login.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-17 00:38:04 -0400
committerIan Moffett <ian@osmora.org>2025-07-17 00:39:46 -0400
commit984b549864280696256cec135651770ff0b1251b (patch)
tree454eb966509fb6c374c7f82a542ae1413fb6e2cf /usr.bin/login/login.c
parent38312546574f400bdccc422c4519e49dc06719a4 (diff)
kernel: spawn: Deprecate SPAWN_WAIT
Deprecate SPAWN_WAIT in favor of waitpid() Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/login/login.c')
-rw-r--r--usr.bin/login/login.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index 93b08ed..5b21303 100644
--- a/usr.bin/login/login.c
+++ b/usr.bin/login/login.c
@@ -104,6 +104,7 @@ check_user(char *alias, char *hash, char *entry)
short have_uid = 0;
short have_shell = 0;
uid_t uid = -1;
+ pid_t shell_pid;
if (alias == NULL || entry == NULL) {
return -EINVAL;
@@ -172,7 +173,7 @@ check_user(char *alias, char *hash, char *entry)
setuid(uid);
shell_argv[0] = shell_path;
- spawn(shell_argv[0], shell_argv, envp, SPAWN_WAIT);
+ shell_pid = spawn(shell_argv[0], shell_argv, envp, 0);
return 0;
}