Fix locking in up/down commands

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-08-08 07:04:49 -07:00
parent 8b8a297798
commit 996f1294c0
2 changed files with 5 additions and 5 deletions

View File

@ -1637,9 +1637,9 @@ case "$COMMAND" in
;; ;;
up|down) up|down)
[ -x $g_firewall ] || fatal_error "Shorewall has never been started" [ -x $g_firewall ] || fatal_error "Shorewall has never been started"
mutex_on [ -n "$nolock" ] || mutex_on
run_it $g_firewall $g_debugging $nolock $@ run_it $g_firewall $g_debugging $@
mutex_off [ -n "$nolock" ] || mutex_off
;; ;;
reset) reset)
get_config get_config

View File

@ -1549,9 +1549,9 @@ case "$COMMAND" in
[ -n "$nolock" ] || mutex_off [ -n "$nolock" ] || mutex_off
;; ;;
up|down) up|down)
mutex_on [ -n "$nolock" ] || mutex_on
run_it $g_firewall $g_debugging $nolock $@ run_it $g_firewall $g_debugging $nolock $@
mutex_off [ -n "$nolock" ] || mutex_off
;; ;;
reset) reset)
get_config get_config