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 /fetchmail.c | |
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
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 7 |
1 files changed, 7 insertions, 0 deletions
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, |