]> git.ipfire.org Git - thirdparty/suricata.git/commit
Make suricata_ctl_flags be volatile
authorKen Steele <ken@tilera.com>
Wed, 29 Oct 2014 19:43:42 +0000 (15:43 -0400)
committerVictor Julien <victor@inliniac.net>
Thu, 30 Oct 2014 12:32:24 +0000 (13:32 +0100)
commita781fc5c2ea047c7ea3774edbf890001987b82cc
treeaef4e02e8e6d4eaff4f4fdd5b82f257b5f916169
parent503cc3de690be563762956f6639fcec16e7a1d79
Make suricata_ctl_flags be volatile

The global variable suricata_ctl_flags needs to volatile, otherwise the
compiler might not cause the variable to be read every time because it
doesn't know other threads might write the variable.

This was causing Suricata to not exit under some conditions.
src/source-af-packet.c
src/source-erf-dag.c
src/source-mpipe.c
src/source-napatech.c
src/source-pcap-file.c
src/source-pcap.c
src/source-pfring.c
src/suricata.c
src/suricata.h