mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-30 09:29:42 +01:00
Move mutex handling to the main program.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
312efe5c7b
commit
78f9b76dae
@ -1236,8 +1236,6 @@ sub process_providers( $ ) {
|
|||||||
enable_provider() {
|
enable_provider() {
|
||||||
g_interface=$1;
|
g_interface=$1;
|
||||||
|
|
||||||
mutex_on
|
|
||||||
|
|
||||||
case $g_interface in
|
case $g_interface in
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -1273,7 +1271,6 @@ EOF
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
mutex_off
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -348,7 +348,9 @@ case "$COMMAND" in
|
|||||||
[ $# -eq 1 ] && exit 0
|
[ $# -eq 1 ] && exit 0
|
||||||
shift
|
shift
|
||||||
[ $# -ne 1 ] && usage 2
|
[ $# -ne 1 ] && usage 2
|
||||||
updown $1
|
mutex_on
|
||||||
|
( updown $1 )
|
||||||
|
mutex_off
|
||||||
status=0
|
status=0
|
||||||
;;
|
;;
|
||||||
enable)
|
enable)
|
||||||
|
Loading…
Reference in New Issue
Block a user