Skip to content

Commit

Permalink
fix bad pcap EOF import
Browse files Browse the repository at this point in the history
  • Loading branch information
kYroL01 committed Mar 29, 2024
1 parent 16d45ea commit 9e9cb6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/socket/pcap/socket_pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,7 @@ void* proto_collect(void *arg) {

if (is_file) {
LDEBUG("Process, pid=%d\n", getpid());
sleep(1000); // <-- we close the pcap with C^C
kill(getpid(), SIGTERM);
}

Expand Down

0 comments on commit 9e9cb6c

Please sign in to comment.