diff options
author | Florian Westphal <fw@strlen.de> | 2012-05-18 01:36:49 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-05-20 22:12:12 +0200 |
commit | 867b5b6496a3296078146ba3d06616eda3b0717e (patch) | |
tree | 99e78dd3a400deb73f8bf4404ca2f84c920168f5 | |
parent | 405c4f7dbfb16e69d75df5b631f195f5b9da29e4 (diff) |
conntrack: flush stdout for each expectation event, too
else, piping "conntrack -E expect" output will be buffered/delayed,
which is not what users expect. Normal conntrack events are already
flushed.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | src/conntrack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conntrack.c b/src/conntrack.c index b065211..0920bc5 100644 --- a/src/conntrack.c +++ b/src/conntrack.c @@ -1380,6 +1380,7 @@ static int event_exp_cb(enum nf_conntrack_msg_type type, nfexp_snprintf(buf,sizeof(buf), exp, type, op_type, op_flags); printf("%s\n", buf); + fflush(stdout); counter++; return NFCT_CB_CONTINUE; |