Lock files not respected in cron mode?

Issue #7 new
Mike Brittain
created an issue

Not sure if this is specific to cron mode (or why it would be), but it seems that lock files created by the start_locking function are not respected on subsequent executions of ganglia-logtailer. Is this an issue specific to Linux disto?

{{{ fcntl.flock(f, fcntl.LOCK_EX | fcntl.LOCK_NB) }}}

For now, I'm working around it by doing this at the beginning of start_locking:

{{{ if os.path.exists(lockfile_name): raise LockingError("Lock file already exists.")

}}}

Comments (2)

  1. Log in to comment