diff --git a/src/daemon.c b/src/daemon.c index ce793069..1c1b3e7b 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -379,6 +379,13 @@ main(int argc, char *argv[]) output_format_xml = 1; } + /* + * Do not damonize if we only have offline files + */ + if (n_pcap_offline) { + nodaemon_flag = 1; + } + if (!nodaemon_flag) daemonize(); write_pid_file();