aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-02-06 17:00:28 +0000
committersin <sin@2f30.org>2014-02-06 17:43:13 +0000
commiteae5382f6ac183086944ff964eeaa95fd7dbe936 (patch)
tree55927b217b5d11a29cbcc39ff69942d678058a5a
parent0ffbe5d2badae771a94457573c3cf0cb382f1ad4 (diff)
Create a new session as quickly as possible
-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);