diff options
-rw-r--r-- | sinit.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -36,6 +36,8 @@ main(void) return EXIT_FAILURE; setsid(); + chdir("/"); + sigemptyset(&set); for (i = 0; i < LEN(sigmap); i++) sigaddset(&set, sigmap[i].sig); |
index : sinit | ||
A tiny static init(1) for Linux | Nick Shipp <nick@shipp.ninja> |
aboutsummaryrefslogtreecommitdiff |
-rw-r--r-- | sinit.c | 2 |
@@ -36,6 +36,8 @@ main(void) return EXIT_FAILURE; setsid(); + chdir("/"); + sigemptyset(&set); for (i = 0; i < LEN(sigmap); i++) sigaddset(&set, sigmap[i].sig); |