jsocol/django-cronjobs — pull request #5 by erikrose (2013-06-07 06:29:00+00:00)
Title: Add a more restrictive mode to the lock file.

os.open's default is 0777. With 0644 some other user can't come along and delete the lock file, letting another cron job run concurrently.

(Editing this through Github; I haven't run tests.)