From 23e59f3d0f7703864d76301dda23659c107f1c0d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 6 Nov 1996 04:26:38 +0000 Subject: Correct setting of implicitmode. svn path=/trunk/; revision=489 --- fetchmail.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fetchmail.c b/fetchmail.c index 14c2cfd7..f6cf3259 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -29,7 +29,7 @@ #ifdef HAVE_PROTOTYPES /* prototypes for internal functions */ -static void load_params(int, char **, int); +static int load_params(int, char **, int); static void dump_params (struct query *); static int query_host(struct query *); static char *visbuf(const char *); @@ -119,7 +119,7 @@ char **argv; /* avoid parsing the config file if all we're doing is killing a daemon */ if (!quitmode) - load_params(argc, argv, optind); + implicitmode = load_params(argc, argv, optind); /* set up to do lock protocol */ if ((tmpdir = getenv("TMPDIR")) == (char *)NULL) @@ -278,6 +278,7 @@ char **argv; */ signal(SIGHUP, donothing); + /* here's the exclusion lock */ if ( (lockfp = fopen(lockfile,"w")) != NULL ) { fprintf(lockfp,"%d",getpid()); if (poll_interval) @@ -371,7 +372,7 @@ char **argv; exit(popstatus); } -static void load_params(argc, argv, optind) +static int load_params(argc, argv, optind) int argc; char **argv; int optind; @@ -550,6 +551,8 @@ int optind; exit(st); else initialize_saved_lists(querylist, idfile); + + return(implicitmode); } void termhook(int sig) -- cgit v1.2.3