mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-03 07:04:53 +00:00
Release Giant before starting up init.
Submitted by: jake
This commit is contained in:
parent
ca2df34a1c
commit
db72809d24
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65899
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue