[lxc-devel] [lxc/master] use fd 9 instead of 200
glensc on Github
lxc-bot at linuxcontainers.org
Sat Aug 20 14:12:26 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 372 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160820/6bfac23e/attachment.bin>
-------------- next part --------------
From 05a6db8135668707be27ab3342ceccea6ca6fcfd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= <glen at delfi.ee>
Date: Sat, 20 Aug 2016 17:09:28 +0300
Subject: [PATCH] use fd 9 instead of 200
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
to catch up mksh changes from 17abf27
Signed-off-by: Elan Ruusamäe <glen at delfi.ee>
---
templates/lxc-slackware.in | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/templates/lxc-slackware.in b/templates/lxc-slackware.in
index c8e8e73..5005918 100644
--- a/templates/lxc-slackware.in
+++ b/templates/lxc-slackware.in
@@ -501,7 +501,7 @@ install_slackware()
rootfs=$1
mkdir -p /var/lock/subsys/
(
-flock -n -x 200
+flock -n -x 9
if [ $? -ne 0 ]; then
echo "Cache repository is busy."
return 1
@@ -629,7 +629,7 @@ sed -i 's|3\ \-x|3 -x -s|' $ROOT/etc/rc.d/rc.syslog || true
return 0
-) 200>/var/lock/subsys/lxc
+) 9>/var/lock/subsys/lxc
return $?
}
@@ -666,7 +666,7 @@ fi
# lock, so we won't purge while someone is creating a repository
(
-flock -n -x 200
+flock -n -x 9
if [ $? != 0 ]; then
echo "Cache repository is busy."
exit 1
@@ -676,7 +676,7 @@ echo -n "Purging the download cache..."
rm --preserve-root --one-file-system -rf $cache && echo "Done." || exit 1
exit 0
-) 200>/var/lock/subsys/lxc
+) 9>/var/lock/subsys/lxc
}
usage()
More information about the lxc-devel
mailing list