diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-06 04:26:38 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-06 04:26:38 +0000 |
commit | 23e59f3d0f7703864d76301dda23659c107f1c0d (patch) | |
tree | 8bfd7c18051609af3f88065ed6d60205c4e53c9d | |
parent | 238cf89924fe33f03ceea5e4997d2ba0776530d3 (diff) | |
download | fetchmail-23e59f3d0f7703864d76301dda23659c107f1c0d.tar.gz fetchmail-23e59f3d0f7703864d76301dda23659c107f1c0d.tar.bz2 fetchmail-23e59f3d0f7703864d76301dda23659c107f1c0d.zip |
Correct setting of implicitmode.
svn path=/trunk/; revision=489
-rw-r--r-- | fetchmail.c | 9 |
1 files 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) |