diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-05-29 04:53:36 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-05-29 04:53:36 +0000 |
commit | 623a32ca0470486679a2ae4d4df8116a8f1c0208 (patch) | |
tree | 84ce593896aefa89921039ae61b810804cb037c4 | |
parent | 8870e7cf0e39e151f722ecbbb668fffa12d78498 (diff) | |
download | fetchmail-623a32ca0470486679a2ae4d4df8116a8f1c0208.tar.gz fetchmail-623a32ca0470486679a2ae4d4df8116a8f1c0208.tar.bz2 fetchmail-623a32ca0470486679a2ae4d4df8116a8f1c0208.zip |
Forbid starting a fetchmail with options when there's a background one
running.
svn path=/trunk/; revision=1050
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | fetchmail.c | 7 |
2 files changed, 11 insertions, 0 deletions
@@ -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, |