suricata: change dir to / in daemon mode.

By changing directory to /, we will not block the directory where
suricata has been started.
pull/184/merge
Eric Leblond 14 years ago committed by Victor Julien
parent 37e3de8425
commit 24d10de8af

@ -133,6 +133,8 @@ void Daemonize (void) {
exit(EXIT_FAILURE);
} */
chdir("/");
SetupLogging();
/* Child is ready, tell its parent */

Loading…
Cancel
Save