[Quoting Michel Eyckmans (MCE), on March 13 2001, 02:03, in "Re: [fetchmail]I'm
t"]
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)
12345 pop.myisp.com
32865 pop3.someotherisp.org
This would allow fetchmail to be able to detect whether it is
permissible to poll a system, while maintaining -q functionality.
-- Johan