Merge pull request #2927 from bcoca/solaris_lock

changed lockfile to be opened in write mode
pull/2931/head
Michael DeHaan 12 years ago
commit c0f138db1f

@ -68,12 +68,9 @@ def log_lockfile():
tempdir = tempfile.gettempdir()
uid = os.getuid()
path = os.path.join(tempdir, ".ansible-lock.%s" % uid)
if not os.path.exists(path):
fh = open(path, 'w')
fh.close()
return path
LOG_LOCK = open(log_lockfile(), 'r')
LOG_LOCK = open(log_lockfile(), 'w')
def log_flock():
fcntl.flock(LOG_LOCK, fcntl.LOCK_EX)

Loading…
Cancel
Save