diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2020-10-13 17:21:47 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2020-10-13 18:31:16 +0200 |
commit | 460c55279cbe55ba56f7068ace6e7cadbb6d6df1 (patch) | |
tree | bcbb640c25636c4c0d1cc2ffaef90295976a9556 /fetchmail.c | |
parent | 0dd0a8e86c01f375c159ac5e538b2f983a367204 (diff) | |
download | fetchmail-460c55279cbe55ba56f7068ace6e7cadbb6d6df1.tar.gz fetchmail-460c55279cbe55ba56f7068ace6e7cadbb6d6df1.tar.bz2 fetchmail-460c55279cbe55ba56f7068ace6e7cadbb6d6df1.zip |
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.
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 */ |