Skip to content
Snippets Groups Projects
user avatar
Sven Eckelmann authored
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>
cb031832
History
Name Last commit Last update