Move mutex handling to the main program.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-06-01 11:47:58 -07:00
parent 21b9a194ca
commit 9c4a01bcdd
2 changed files with 3 additions and 4 deletions

View File

@ -1236,8 +1236,6 @@ sub process_providers( $ ) {
enable_provider() {
g_interface=$1;
mutex_on
case $g_interface in
EOF
@ -1273,7 +1271,6 @@ EOF
;;
esac
mutex_off
}
#

View File

@ -348,7 +348,9 @@ case "$COMMAND" in
[ $# -eq 1 ] && exit 0
shift
[ $# -ne 1 ] && usage 2
updown $1
mutex_on
( updown $1 )
mutex_off
status=0
;;
enable)