[hackers] [sinit] setpgid(0, 0) seems redundant after setsid() || sin
commit d1bb8b1a30f059724da20185d17a9565088c322a
Author: sin <sin_AT_2f30.org>
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
_AT_@ -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);
Received on Sat Apr 19 2014 - 11:28:15 CEST
This archive was generated by hypermail 2.3.0
: Sat Apr 19 2014 - 11:36:07 CEST