diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2011-07-01 16:57:18 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2011-07-01 16:57:18 -0400 |
commit | f5c4dd3a2919c1526241810d1c1dface3b15d519 (patch) | |
tree | 06e02c7fda96d503ee29084bb3da37527667331b /src | |
parent | e5dc2ee1d48273e6e01170243201fccc400b6c98 (diff) |
chdir to / at server program startup.
Diffstat (limited to 'src')
-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); |