summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 9af13f3360..b6bc0ba734 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -694,7 +694,12 @@ class BaseConfig(object):
694 raise Exception("runqemu-ifup, runqemu-ifdown or ip not found") 694 raise Exception("runqemu-ifup, runqemu-ifdown or ip not found")
695 695
696 if not os.path.exists(lockdir): 696 if not os.path.exists(lockdir):
697 os.mkdir(lockdir) 697 # There might be a race issue when multi runqemu processess are
698 # running at the same time.
699 try:
700 os.mkdir(lockdir)
701 except FileExistsError:
702 pass
698 703
699 cmd = '%s link' % ip 704 cmd = '%s link' % ip
700 logger.info('Running %s...' % cmd) 705 logger.info('Running %s...' % cmd)