]> git.ipfire.org Git - thirdparty/suricata.git/commit
af-packet: handle possible exit of capture loop.
authorEric Leblond <eric@regit.org>
Wed, 5 Sep 2012 13:32:11 +0000 (15:32 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 6 Sep 2012 08:24:05 +0000 (10:24 +0200)
commitb2691cbe889f138b0de0426740ae48dec77cdb8b
tree91ab4d0cab5776dd0bcc00babf43e34d0857332c
parent4d8f70c61348a45cea86c5d737204929130bc886
af-packet: handle possible exit of capture loop.

If a capture loop does exit, the thread needs to start without
synchronization with the other threads. This patch fixes this
by resetting the turn count on the peerslist structure and
adding a test on this condition in the wait function.
src/source-af-packet.c