summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-01-22 00:35:51 +0000
committerTim Potter <tpot@samba.org>2002-01-22 00:35:51 +0000
commite05c9b34f084874fef3d9e6f39484242ed541940 (patch)
tree8a08de66b790edf4e55dcfffff09cff0c18ae88d
parentfa05a7de6d2311293242825dc98596d8e42c6249 (diff)
downloadsamba-e05c9b34f084874fef3d9e6f39484242ed541940.tar.gz
samba-e05c9b34f084874fef3d9e6f39484242ed541940.tar.xz
samba-e05c9b34f084874fef3d9e6f39484242ed541940.zip
Added comment about running lp_load() before calling pidfile_create().
-rw-r--r--source/lib/pidfile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/lib/pidfile.c b/source/lib/pidfile.c
index a9b2da0d7fd..fad5691e0ae 100644
--- a/source/lib/pidfile.c
+++ b/source/lib/pidfile.c
@@ -69,7 +69,10 @@ 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 lock directory. open it and leave it locked.
+ This must be done after a call to lp_load() as it uses the lp_lockdir()
+ function to generate the path to the pidfile. */
+
void pidfile_create(char *name)
{
int fd;