From aaa4ace72ba1d195bbf436134a336816c33f7bd0 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Fri, 4 Jul 2014 15:50:41 +0200 Subject: iptables: add optional [seconds] argument to -w This patch adds an optional numeric argument to -w option (added with 93587a0) so one can specify how long to wait for an exclusive lock. If the value isn't specified it works as before, i.e. program waits indefinitely. If user specifies it, program exits after the given time interval passes. This patch also adds the -w/--wait to nftables compat code, so the parser doesn't complain. [ In the original patch, iptables-compat -w X was not working, I have fixed by adding the dummy code not to break scripts using the new optional argument --pablo ] Signed-off-by: Jiri Popelka Signed-off-by: Pablo Neira Ayuso --- iptables/iptables.8.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'iptables/iptables.8.in') diff --git a/iptables/iptables.8.in b/iptables/iptables.8.in index 8ef222e5..ceba5dc2 100644 --- a/iptables/iptables.8.in +++ b/iptables/iptables.8.in @@ -359,12 +359,13 @@ For appending, insertion, deletion and replacement, this causes detailed information on the rule or rules to be printed. \fB\-v\fP may be specified multiple times to possibly emit more detailed debug statements. .TP -\fB\-w\fP, \fB\-\-wait\fP +\fB\-w\fP, \fB\-\-wait\fP [\fIseconds\fP] Wait for the xtables lock. To prevent multiple instances of the program from running concurrently, an attempt will be made to obtain an exclusive lock at launch. By default, the program will exit if the lock cannot be obtained. This option will -make the program wait until the exclusive lock can be obtained. +make the program wait (indefinitely or for optional \fIseconds\fP) until +the exclusive lock can be obtained. .TP \fB\-n\fP, \fB\-\-numeric\fP Numeric output. -- cgit v1.2.3