diff options
author | laforge <laforge> | 2000-08-14 08:28:23 +0000 |
---|---|---|
committer | laforge <laforge> | 2000-08-14 08:28:23 +0000 |
commit | 3b1c87cc39c7fd24b71d7d5fe79264398087f756 (patch) | |
tree | 9b732d96c0ff7e89348d2e0a3d8b3a7dfef2f712 /ulogd.c | |
parent | a1d04013e7ee72ba62053e11c57a3aff4b19a17f (diff) |
various bugfixes (tcp interpreter), output for boolean type
Diffstat (limited to 'ulogd.c')
-rw-r--r-- | ulogd.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* ulogd, Version $Revision: 1.4 $ +/* ulogd, Version $Revision: 1.5 $ * * first try of a logging daemon for my netfilter ULOG target * for the linux 2.4 netfilter subsystem. @@ -7,7 +7,7 @@ * * this code is released under the terms of GNU GPL * - * $Id: ulogd.c,v 1.4 2000/08/09 16:26:34 root Exp $ + * $Id: ulogd.c,v 1.5 2000/08/11 09:56:48 laforge Exp $ */ #include <stdio.h> @@ -224,13 +224,13 @@ int main(int argc, char* argv[]) exit(1); } +#ifndef DEBUG if (!fork()) { - /* fclose(stdout); fclose(stderr); - */ +#endif /* endless loop receiving packets and handling them over to * handle_packet */ @@ -246,8 +246,10 @@ int main(int argc, char* argv[]) ipulog_destroy_handle(h); free(buf); fclose(logfile); +#ifndef DEBUG } else { exit(0); } +#endif } |