From 460c55279cbe55ba56f7068ace6e7cadbb6d6df1 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Tue, 13 Oct 2020 17:21:47 +0200 Subject: pidfile/lockfile handling bugfixes pidfile/locking: log errors thru syslog, too This works by replacing perror()/fprintf(stderr, ...) by report() and strerror(). If the pidfile cannot be unlinked, truncate it. Bump release version to 6.4.13.rc1, and move KNOWN BUGS section up in NEWS. --- fetchmail.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index fb1e6015..3619fd9b 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -329,9 +329,10 @@ int main(int argc, char **argv) if (system("uname -a")) { /* NOOP to quench GCC complaint */ } } - /* avoid parsing the config file if all we're doing is killing a daemon */ - if (!quitonly) - implicitmode = load_params(argc, argv, optind); + /* We used to avoid parsing the config file if all we're doing is killing + * a daemon, under if (!quitonly) but since the pidfile can be configured + * in the rcfile, this is no longer viable. */ + implicitmode = load_params(argc, argv, optind); if (run.logfile) { /* nodetach -> turn off logfile option */ -- cgit v1.2.3