Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 254ae6c8 authored by Bart Van Assche's avatar Bart Van Assche Committed by Gerrit Code Review
Browse files

Merge "init: Reduce the number of system calls"

parents 30bd9e95 d394f743
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -244,7 +244,7 @@ Result<void> SetProcessAttributes(const ProcessAttributes& attr) {
        setsid();
        OpenConsole(attr.console);
    } else {
        if (setpgid(0, getpid()) == -1) {
        if (setpgid(0, 0) == -1) {
            return ErrnoError() << "setpgid failed";
        }
        SetupStdio(attr.stdio_to_kmsg);