diff options
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 105abd6..0d98775 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); |