diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libutil/pidfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/pidfile.c b/lib/libutil/pidfile.c index fc1516340cf7..e002d6534a6d 100644 --- a/lib/libutil/pidfile.c +++ b/lib/libutil/pidfile.c @@ -112,8 +112,8 @@ pidfile_open(const char *path, mode_t mode, pid_t *pidptr) * PID file will be truncated again in pidfile_write(), so * pidfile_write() can be called multiple times. */ - fd = open(pfh->pf_path, - O_WRONLY | O_CREAT | O_EXLOCK | O_TRUNC | O_NONBLOCK, mode); + fd = flopen(pfh->pf_path, + O_WRONLY | O_CREAT | O_TRUNC | O_NONBLOCK, mode); if (fd == -1) { if (errno == EWOULDBLOCK && pidptr != NULL) { errno = pidfile_read(pfh->pf_path, pidptr); |
