summaryrefslogtreecommitdiff
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2000-09-15 19:25:29 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2000-09-15 19:25:29 +0000
commitdb72809d2469d54868c354b48961e0318609a481 (patch)
treea58f7cb9523ea55e2c0b2f4303549dfe028a1468 /sys/kern/init_main.c
parentca2df34a1c209727557fbf15b2ac2165d47b1933 (diff)
Notes
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 105abd67c08b..0d987758da74 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -559,8 +559,10 @@ start_init(void *dummy)
* Otherwise, return via fork_trampoline() all the way
* to user mode as init!
*/
- if ((error = execve(p, &args)) == 0)
+ if ((error = execve(p, &args)) == 0) {
+ mtx_exit(&Giant, MTX_DEF);
return;
+ }
if (error != ENOENT)
printf("exec %.*s: error %d\n", (int)(next - path),
path, error);