Skip to content
Snippets Groups Projects
Forked from ffbs / ffbs-gluon
Source project has a limited visibility.
  • Sven Eckelmann's avatar
    cb031832
    ebtables: Use flock() for --concurrent option · cb031832
    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>
    ebtables: Use flock() for --concurrent option
    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>