diff options
-rw-r--r-- | src/server.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server.c b/src/server.c index 84484a1..abf9d10 100644 --- a/src/server.c +++ b/src/server.c @@ -51,6 +51,8 @@ int main (int argc, char *argv[]) { struct sigaction sa = { .sa_handler = server_sighandler }; + chdir("/"); + /* Set up sighandlers */ sigaction(SIGINT, &sa, NULL); sigaction(SIGTERM, &sa, NULL); |