aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS4
-rw-r--r--fetchmail.c7
2 files changed, 11 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9b68c1b0..b7d2eaf3 100644
--- a/NEWS
+++ b/NEWS
@@ -24,6 +24,10 @@ every user entry in a multi-user poll declaration.
------------------------------------------------------------------------------
+pl 3.9.7 ():
+* Complain and die if user tries to start fetchmail with options while a
+ background fetchmail is running.
+
pl 3.9.6 (Wed May 28 18:28:35 EDT 1997):
* Fix the libc6 configuration stuff (thanks to Jesse Thilo).
* Support for Kerberos-v4-authenticated IMAP (thanks to Rudolph Maceyko).
diff --git a/fetchmail.c b/fetchmail.c
index 8438c42e..b0c0f925 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -268,6 +268,13 @@ int main (int argc, char **argv)
pid);
return(PS_EXCLUDE);
}
+ else if (argc > 1)
+ {
+ fprintf(stderr,
+ "fetchmail: can't accept options while a background fetchmail is running.\n",
+ pid);
+ return(PS_EXCLUDE);
+ }
else if (kill(pid, SIGUSR1) == 0)
{
fprintf(stderr,