[packages/lxc/dev-1.0.0] mksh can't redirect fd 200, use 9

glen glen at pld-linux.org
Mon Jan 13 10:43:47 CET 2014


commit a992b44b82fd3f9edac1b6150505e6025de53034
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jan 13 11:43:42 2014 +0200

    mksh can't redirect fd 200, use 9

 lxc-pld.in.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/lxc-pld.in.sh b/lxc-pld.in.sh
index c711027..ca1677a 100755
--- a/lxc-pld.in.sh
+++ b/lxc-pld.in.sh
@@ -187,7 +187,7 @@ install_pld()
 {
 	mkdir -p @LOCALSTATEDIR@/lock/subsys/
 	(
-		flock -x 200
+		flock -x 9
 		if [ $? -ne 0 ]; then
 			echo "Cache repository is busy."
 			return 1
@@ -218,7 +218,7 @@ install_pld()
 		fi
 
 		return 0
-	) 200>@LOCALSTATEDIR@/lock/subsys/lxc-pld
+	) 9>@LOCALSTATEDIR@/lock/subsys/lxc-pld
 
 	return $?
 }
@@ -287,7 +287,7 @@ clean()
 
 	# lock, so we won't purge while someone is creating a repository
 	(
-		flock -x 200
+		flock -x 9
 		if [ $? != 0 ]; then
 			echo "Cache repository is busy."
 			exit 1
@@ -296,7 +296,7 @@ clean()
 		echo -n "Purging the download cache for PLD Linux $release..."
 		rm --preserve-root --one-file-system -rf $cache && echo "Done." || exit 1
 		exit 0
-	) 200>@LOCALSTATEDIR@/lock/subsys/lxc-pld
+	) 9>@LOCALSTATEDIR@/lock/subsys/lxc-pld
 }
 
 usage()
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lxc.git/commitdiff/a992b44b82fd3f9edac1b6150505e6025de53034



More information about the pld-cvs-commit mailing list