aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sinit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sinit.c b/sinit.c
index be278bb..374a59d 100644
--- a/sinit.c
+++ b/sinit.c
@@ -38,6 +38,7 @@ main(void)
if (getpid() != 1)
return EXIT_FAILURE;
+ setsid();
sigfillset(&set);
sigprocmask(SIG_BLOCK, &set, 0);