summaryrefslogtreecommitdiffstats
path: root/source/lib/pidfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/lib/pidfile.c')
-rw-r--r--source/lib/pidfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/lib/pidfile.c b/source/lib/pidfile.c
index 25ca1944111..a856541ca89 100644
--- a/source/lib/pidfile.c
+++ b/source/lib/pidfile.c
@@ -37,7 +37,7 @@ pid_t pidfile_pid(char *name)
unsigned ret;
pstring pidFile;
- slprintf(pidFile, sizeof(pidFile)-1, "%s/%s.pid", lp_lockdir(), name);
+ slprintf(pidFile, sizeof(pidFile)-1, "%s/%s.pid", lp_piddir(), name);
fd = sys_open(pidFile, O_NONBLOCK | O_RDONLY, 0644);
if (fd == -1) {
@@ -70,7 +70,7 @@ pid_t pidfile_pid(char *name)
return 0;
}
-/* create a pid file in the lock directory. open it and leave it locked */
+/* create a pid file in the pid directory. open it and leave it locked */
void pidfile_create(char *name)
{
int fd;
@@ -78,7 +78,7 @@ void pidfile_create(char *name)
pstring pidFile;
pid_t pid;
- slprintf(pidFile, sizeof(pidFile)-1, "%s/%s.pid", lp_lockdir(), name);
+ slprintf(pidFile, sizeof(pidFile)-1, "%s/%s.pid", lp_piddir(), name);
pid = pidfile_pid(name);
if (pid != 0) {