Hello,
I noted that sometimes the output of the print plugin is
corrupted. For example, in an output of over 100,000 lines I
found:
---
0 00:00:00:00:00:00 00:00:00:00:00:00 0
85.130.182.130 0 0 ip 0 1 0
48
0 00:00:00:00:00:00 00:00:00:00:00:00 0
85.130.206.227 0 0 ip 0 1 0
48
0 355 <---
0 00:00:00:00:00:00 00:00:00:00:00:00 0
192.115.132.179 0 0 ip 0 2 0
750
0 00:00:00:00:00:00 00:00:00:00:00:00 0
85.130.183.57 0 0 ip 0 1 0
48
---
The corrupted line is marked with <---. If the output is
piped to bzip (which makes it "slow") then many more lines are corrupted.
Such a thing may happen if several processes are writing at once to
the same file descriptor. From the code of print_plugin.c it indeed
looks like several process may output at once. If this is correct,
what keeps them from intermixed output (not at line boundaries?)
Thanks,
Amir