diff options
Diffstat (limited to 'source/lib/pidfile.c')
-rw-r--r-- | source/lib/pidfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/pidfile.c b/source/lib/pidfile.c index 9de672010a4..a26aa12a3c1 100644 --- a/source/lib/pidfile.c +++ b/source/lib/pidfile.c @@ -41,7 +41,7 @@ pid_t pidfile_pid(char *name) slprintf(pidFile, sizeof(pidFile)-1, "%s/%s.pid", lp_lockdir(), name); - fd = sys_open(pidFile, O_NONBLOCK | O_RONLY, 0644); + fd = sys_open(pidFile, O_NONBLOCK | O_RDONLY, 0644); if (fd == -1) { return 0; } |