Release Giant before starting up init.

Submitted by:	jake
This commit is contained in:
John Baldwin 2000-09-15 19:25:29 +00:00
parent ca2df34a1c
commit db72809d24
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65899

View file

@ -559,8 +559,10 @@ start_init(void *dummy)
* Otherwise, return via fork_trampoline() all the way * Otherwise, return via fork_trampoline() all the way
* to user mode as init! * to user mode as init!
*/ */
if ((error = execve(p, &args)) == 0) if ((error = execve(p, &args)) == 0) {
mtx_exit(&Giant, MTX_DEF);
return; return;
}
if (error != ENOENT) if (error != ENOENT)
printf("exec %.*s: error %d\n", (int)(next - path), printf("exec %.*s: error %d\n", (int)(next - path),
path, error); path, error);