From d1bb8b1a30f059724da20185d17a9565088c322a Mon Sep 17 00:00:00 2001 From: sin Date: Sat, 19 Apr 2014 10:25:18 +0100 Subject: setpgid(0, 0) seems redundant after setsid() --- sinit.c | 1 - 1 file changed, 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2