Merge "init: Reduce the number of system calls"
This commit is contained in:
commit
254ae6c82b
1 changed files with 1 additions and 1 deletions
|
|
@ -244,7 +244,7 @@ Result<void> SetProcessAttributes(const ProcessAttributes& attr) {
|
||||||
setsid();
|
setsid();
|
||||||
OpenConsole(attr.console);
|
OpenConsole(attr.console);
|
||||||
} else {
|
} else {
|
||||||
if (setpgid(0, getpid()) == -1) {
|
if (setpgid(0, 0) == -1) {
|
||||||
return ErrnoError() << "setpgid failed";
|
return ErrnoError() << "setpgid failed";
|
||||||
}
|
}
|
||||||
SetupStdio(attr.stdio_to_kmsg);
|
SetupStdio(attr.stdio_to_kmsg);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue