From 623a32ca0470486679a2ae4d4df8116a8f1c0208 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 29 May 1997 04:53:36 +0000 Subject: Forbid starting a fetchmail with options when there's a background one running. svn path=/trunk/; revision=1050 --- fetchmail.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'fetchmail.c') 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, -- cgit v1.2.3