summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-internal
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-xscripts/runqemu-internal6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 5711bd3802..a0a1e96eb4 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -138,7 +138,11 @@ else
138 return 1 138 return 1
139 fi 139 fi
140 140
141 touch $lockfile.lock 141 touch $lockfile.lock 2>/dev/null
142 if [ $? -ne 0 ]; then
143 echo "Acquiring lockfile for $lockfile.lock failed"
144 return 1
145 fi
142 exec 8>$lockfile.lock 146 exec 8>$lockfile.lock
143 flock -n -x 8 147 flock -n -x 8
144 if [ $? -ne 0 ]; then 148 if [ $? -ne 0 ]; then