aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sinit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sinit.c b/sinit.c
index e938f3e..c696a96 100644
--- a/sinit.c
+++ b/sinit.c
@@ -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);