commit d1bb8b1a30f059724da20185d17a9565088c322a
Author: sin <[email protected]>
Date:   Sat Apr 19 10:25:18 2014 +0100

    setpgid(0, 0) seems redundant after setsid()

diff --git a/sinit.c b/sinit.c
index 34e379b..a0eb868 100644
--- a/sinit.c
+++ b/sinit.c
@@ -79,7 +79,6 @@ spawn(char *const argv[])
        } else if (pid == 0) {
                sigprocmask(SIG_UNBLOCK, &set, NULL);
                setsid();
-               setpgid(0, 0);
                execvp(argv[0], argv);
                perror("execvp");
                _exit(EXIT_FAILURE);


Reply via email to