mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
2b5485c781
This port represents unstable, development Samba branch. PR: 24808 Submitted by: David W. Chapman Jr. <dwcjr@inethouston.net>
21 lines
608 B
Plaintext
21 lines
608 B
Plaintext
--- lib/pidfile.c.orig Fri Feb 2 00:38:09 2001
|
|
+++ lib/pidfile.c Fri Feb 2 00:38:26 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_RDWR, 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) {
|