From c2b6d974e733227022f066b655157ff52040ebcc Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 22 Jan 2015 08:30:05 -0800 Subject: [PATCH] Protect 'enable' and 'disable' with mutex Signed-off-by: Tom Eastep --- Shorewall/Perl/prog.footer | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Shorewall/Perl/prog.footer b/Shorewall/Perl/prog.footer index 7b21d30fa..8d1d99cd1 100644 --- a/Shorewall/Perl/prog.footer +++ b/Shorewall/Perl/prog.footer @@ -373,20 +373,24 @@ case "$COMMAND" in [ $# -eq 1 ] && exit 0 shift [ $# -ne 1 ] && usage 2 + mutex_on if product_is_started; then detect_configuration enable_provider $1 fi + mutex_off status=0 ;; disable) [ $# -eq 1 ] && exit 0 shift [ $# -ne 1 ] && usage 2 + mutex_on if product_is_started; then detect_configuration disable_provider $1 fi + mutex_off status=0 ;; run)