summaryrefslogtreecommitdiffstats
path: root/ulogd/ulogd.c
diff options
context:
space:
mode:
authorlaforge <laforge>2000-08-14 08:28:23 +0000
committerlaforge <laforge>2000-08-14 08:28:23 +0000
commitef8f9485b03972ff5efa6e45fa7b01f6d4256b39 (patch)
treeb4f5072b82759342b684effb594a0836c2c37443 /ulogd/ulogd.c
parent1fb8128d7111dded78bf9445709cd94354f7f5f2 (diff)
various bugfixes (tcp interpreter), output for boolean type
Diffstat (limited to 'ulogd/ulogd.c')
-rw-r--r--ulogd/ulogd.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/ulogd/ulogd.c b/ulogd/ulogd.c
index abee09a..d917a3f 100644
--- a/ulogd/ulogd.c
+++ b/ulogd/ulogd.c
@@ -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
}