Browse Source
Merge pull request #3650 from SomberNight/daemon_lockfile_not_exec
make daemon lockfile not executable
3.1
ThomasV
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
lib/daemon.py
|
|
@ -58,7 +58,7 @@ def get_fd_or_server(config): |
|
|
|
lockfile = get_lockfile(config) |
|
|
|
while True: |
|
|
|
try: |
|
|
|
return os.open(lockfile, os.O_CREAT | os.O_EXCL | os.O_WRONLY), None |
|
|
|
return os.open(lockfile, os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0o644), None |
|
|
|
except OSError: |
|
|
|
pass |
|
|
|
server = get_server(config) |
|
|
|