Using -R option is a great thing, but if the app takes a long time to
run and you want to restart flow-capture daemon, you have a problem.
The socket stays "in use" until the child exists...
This is my patch:
--- ORIG/flow-tools-0.68/src/flow-capture.c 2004-01-05
17:56:50.000000000 +0000
+++ PATCHED/flow-tools-0.68/src/flow-capture.c 2006-03-24
15:43:24.000000000 +0000
@@ -1228,6 +1229,7 @@
/* Do the post rotate exec */
if (post_rotate_exec[0]) {
+ fcntl(ftnet.fd, F_SETFD, 1);
if ((n = fork()) == -1) {
fterr_err(1, "fork()");
--
Delfim Machado
SMTP: [EMAIL PROTECTED]
XMPP: [EMAIL PROTECTED]
SPAM: [EMAIL PROTECTED]
_______________________________________________
Flow-tools mailing list
[EMAIL PROTECTED]
http://mailman.splintered.net/mailman/listinfo/flow-tools