Commit 6cbcf34c by Christian Brauner Committed by GitHub

Merge pull request #1146 from glensc/fd-200

use fd 9 instead of 200
parents d67c0621 570c8ed7
...@@ -501,7 +501,7 @@ install_slackware() ...@@ -501,7 +501,7 @@ install_slackware()
rootfs=$1 rootfs=$1
mkdir -p /var/lock/subsys/ mkdir -p /var/lock/subsys/
( (
flock -n -x 200 flock -n -x 9
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Cache repository is busy." echo "Cache repository is busy."
return 1 return 1
...@@ -629,7 +629,7 @@ sed -i 's|3\ \-x|3 -x -s|' $ROOT/etc/rc.d/rc.syslog || true ...@@ -629,7 +629,7 @@ sed -i 's|3\ \-x|3 -x -s|' $ROOT/etc/rc.d/rc.syslog || true
return 0 return 0
) 200>/var/lock/subsys/lxc ) 9>/var/lock/subsys/lxc
return $? return $?
} }
...@@ -666,7 +666,7 @@ fi ...@@ -666,7 +666,7 @@ fi
# lock, so we won't purge while someone is creating a repository # lock, so we won't purge while someone is creating a repository
( (
flock -n -x 200 flock -n -x 9
if [ $? != 0 ]; then if [ $? != 0 ]; then
echo "Cache repository is busy." echo "Cache repository is busy."
exit 1 exit 1
...@@ -676,7 +676,7 @@ echo -n "Purging the download cache..." ...@@ -676,7 +676,7 @@ echo -n "Purging the download cache..."
rm --preserve-root --one-file-system -rf $cache && echo "Done." || exit 1 rm --preserve-root --one-file-system -rf $cache && echo "Done." || exit 1
exit 0 exit 0
) 200>/var/lock/subsys/lxc ) 9>/var/lock/subsys/lxc
} }
usage() usage()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment