index
:
sinit
master
A tiny static init(1) for Linux
Nick Shipp <nick@shipp.ninja>
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
sinit.c
1
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);