Change working directory to /

This commit is contained in:
Miroslav Lichvar 2011-08-25 18:49:34 +02:00
parent 1e35b26826
commit 919b5b5a7d

3
main.c
View file

@ -241,6 +241,9 @@ go_daemon(void)
for (fd=0; fd<1024; fd++) { for (fd=0; fd<1024; fd++) {
close(fd); close(fd);
} }
/* Change current directory to / */
chdir("/");
} }
} }