forked from extern/shorewall_code
Fix locking in up/down commands
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
8b8a297798
commit
996f1294c0
@ -1637,9 +1637,9 @@ case "$COMMAND" in
|
||||
;;
|
||||
up|down)
|
||||
[ -x $g_firewall ] || fatal_error "Shorewall has never been started"
|
||||
mutex_on
|
||||
run_it $g_firewall $g_debugging $nolock $@
|
||||
mutex_off
|
||||
[ -n "$nolock" ] || mutex_on
|
||||
run_it $g_firewall $g_debugging $@
|
||||
[ -n "$nolock" ] || mutex_off
|
||||
;;
|
||||
reset)
|
||||
get_config
|
||||
|
@ -1549,9 +1549,9 @@ case "$COMMAND" in
|
||||
[ -n "$nolock" ] || mutex_off
|
||||
;;
|
||||
up|down)
|
||||
mutex_on
|
||||
[ -n "$nolock" ] || mutex_on
|
||||
run_it $g_firewall $g_debugging $nolock $@
|
||||
mutex_off
|
||||
[ -n "$nolock" ] || mutex_off
|
||||
;;
|
||||
reset)
|
||||
get_config
|
||||
|
Loading…
Reference in New Issue
Block a user