mirror of
https://git.freebsd.org/ports.git
synced 2025-06-26 23:20:30 -04:00
20 lines
610 B
Text
20 lines
610 B
Text
--- lib/pidfile.c.orig Sat Oct 13 22:09:24 2001
|
|
+++ lib/pidfile.c Tue Oct 16 17:17:51 2001
|
|
@@ -39,7 +39,7 @@
|
|
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) {
|
|
@@ -80,7 +80,7 @@
|
|
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) {
|