Skip to content

Commit

Permalink
Merge pull request #63 from jelu/offline-nodaemon
Browse files Browse the repository at this point in the history
Fix #62: Do not go into daemon mode if reading offline files
  • Loading branch information
jelu committed Jun 7, 2016
2 parents a4a8f9a + a28f5d4 commit e1945f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e1945f7

Please sign in to comment.