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)
|
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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user