diff options
Diffstat (limited to 'iptables/xshared.h')
-rw-r--r-- | iptables/xshared.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/iptables/xshared.h b/iptables/xshared.h index 539e6c24..7e6d0859 100644 --- a/iptables/xshared.h +++ b/iptables/xshared.h @@ -92,8 +92,7 @@ extern void xs_init_match(struct xtables_match *); * * A value >= 0 indicates the lock filedescriptor. Other values are: * - * XT_LOCK_UNSUPPORTED : The system does not support locking, execution will - * proceed lockless. + * XT_LOCK_FAILED : The lock could not be acquired. * * XT_LOCK_BUSY : The lock was held by another process. xtables_lock only * returns this value when |wait| == false. If |wait| == true, xtables_lock @@ -103,11 +102,11 @@ extern void xs_init_match(struct xtables_match *); */ enum { XT_LOCK_BUSY = -1, - XT_LOCK_UNSUPPORTED = -2, + XT_LOCK_FAILED = -2, XT_LOCK_NOT_ACQUIRED = -3, }; -extern int xtables_lock(int wait, struct timeval *tv); extern void xtables_unlock(int lock); +extern int xtables_lock_or_exit(int wait, struct timeval *tv); int parse_wait_time(int argc, char *argv[]); void parse_wait_interval(int argc, char *argv[], struct timeval *wait_interval); |