[Quoting Michel Eyckmans (MCE), on March 13 2001, 02:03, in "Re: [fetchmail]I'm
But on the other hand, I want the behaviour of -q and running a
foreground fetchmail to stay the same and would be wary of all the
shared memory stuff. Also, as far as the users are concerned,
fetchmail should work in exactly the same way on all platforms. The
famous principle of least surprise, if you will.
I see two easy solutions: one is to make a per-host lockfile (e.g.,
~/.fetchmail.pop.myisp.com.pid). This requires examining the directory
for .fetchmail.*.pid files.
The other is to not store the pid, but the pid and poll host. This
.fetchmail.pod would contain (indentation for clarity)
This would allow fetchmail to be able to detect whether it is
permissible to poll a system, while maintaining -q functionality.