summaryrefslogtreecommitdiff
path: root/flowtop.c
diff options
context:
space:
mode:
Diffstat (limited to 'flowtop.c')
-rw-r--r--flowtop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/flowtop.c b/flowtop.c
index 6844402..6466b47 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -1134,8 +1134,6 @@ static void *collector(void *null __maybe_unused)
struct pollfd poll_fd[1];
int ret;
- collector_flush();
-
ct_event = nfct_open(CONNTRACK, NF_NETLINK_CONNTRACK_NEW |
NF_NETLINK_CONNTRACK_UPDATE |
NF_NETLINK_CONNTRACK_DESTROY);
@@ -1199,6 +1197,8 @@ static void *collector(void *null __maybe_unused)
panic("Cannot set non-blocking socket: fcntl(): %s\n",
strerror(errno));
+ collector_flush();
+
rcu_register_thread();
while (!sigint && ret >= 0) {