setpgid(0, 0) seems redundant after setsid() - sinit - suckless init
(HTM) git clone git://git.suckless.org/sinit
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit d1bb8b1a30f059724da20185d17a9565088c322a
(DIR) parent e4a4117b3e895e28ff99e30526f229e55aa57d0d
(HTM) Author: sin <sin@2f30.org>
Date: Sat, 19 Apr 2014 10:25:18 +0100
setpgid(0, 0) seems redundant after setsid()
Diffstat:
M sinit.c | 1 -
1 file changed, 0 insertions(+), 1 deletion(-)
---
(DIR) diff --git 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);