aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-04-02 10:47:58 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-04-02 10:47:58 +0000
commit54833b53da596625b194c40732f67aa9dd0ece54 (patch)
tree27cbc572fe209c07f761fa1d6deb0bbdfb9fdc10 /fetchmail.c
parent884266c5f0f1d53c15fa2e9d98132c0749c576ff (diff)
downloadfetchmail-54833b53da596625b194c40732f67aa9dd0ece54.tar.gz
fetchmail-54833b53da596625b194c40732f67aa9dd0ece54.tar.bz2
fetchmail-54833b53da596625b194c40732f67aa9dd0ece54.zip
Add pidfile option, requested by Héctor García.
svn path=/branches/BRANCH_6-3/; revision=4770
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 7712820b..4bba7ad1 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -43,6 +43,7 @@
#include "smtp.h"
#include "netrc.h"
#include "i18n.h"
+#include "lock.h"
#ifndef ENETUNREACH
#define ENETUNREACH 128 /* Interactive doesn't know this */
@@ -315,7 +316,7 @@ int main(int argc, char **argv)
#endif /* POP3_ENABLE */
/* construct the lockfile */
- lock_setup();
+ lock_setup(&run);
#ifdef HAVE_SETRLIMIT
/*
@@ -1067,6 +1068,8 @@ static int load_params(int argc, char **argv, int optind)
run.logfile = cmd_run.logfile;
if (cmd_run.idfile)
run.idfile = cmd_run.idfile;
+ if (cmd_run.pidfile)
+ run.pidfile = cmd_run.pidfile;
/* do this before the keep/fetchall test below, otherwise -d0 may fail */
if (cmd_run.poll_interval >= 0)
run.poll_interval = cmd_run.poll_interval;