Skip to content
Snippets Groups Projects
Unverified Commit cb031832 authored by Sven Eckelmann's avatar Sven Eckelmann Committed by Matthias Schiffer
Browse files

ebtables: 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: default avatarSven Eckelmann <sven@narfation.org>
parent 9e3ea830
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment