aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-04-19 10:25:18 +0100
committersin <sin@2f30.org>2014-04-19 10:28:09 +0100
commitd1bb8b1a30f059724da20185d17a9565088c322a (patch)
tree8949be43ea234867ac309f361cedc4cfe71cc34e
parente4a4117b3e895e28ff99e30526f229e55aa57d0d (diff)
setpgid(0, 0) seems redundant after setsid()
-rw-r--r--sinit.c1
1 files changed, 0 insertions, 1 deletions
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);