summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2017-10-06 12:48:50 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2017-10-24 17:56:32 +0200
commit6a826591878db3fa9e2a94b87a3d5edd8e0fc442 (patch)
tree2e2202491027f2c52a45022c75722a77aff7f5c1 /Makefile
parent73c2371744c08c677540d468a588586effecab2d (diff)
Use flock() for --concurrent option
The previous locking mechanism was not atomic, hence it was possible that a killed ebtables process would leave the lock file in place which in turn made future ebtables processes wait indefinitely for the lock to become free. Fix this by using flock(). This also simplifies code quite a bit because there is no need for a custom signal handler or an __exit routine anymore. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions