Lines Matching refs:lockdir
248 def check_free_port(self, host, port, lockdir): argument
253 lockfile = os.path.join(lockdir, str(port) + '.lock')
1082 lockdir = "/tmp/qemu-port-locks"
1083 if not os.path.exists(lockdir):
1087 os.mkdir(lockdir)
1088 os.chmod(lockdir, 0o777)
1095 while not self.check_free_port('localhost', p_new, lockdir):
1122 lockdir = "/tmp/qemu-tap-locks"
1130 if not os.path.exists(lockdir):
1134 os.mkdir(lockdir)
1135 os.chmod(lockdir, 0o777)
1146 lockfile = os.path.join(lockdir, p)
1172 lockfile = os.path.join(lockdir, tap)