diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-01-17 02:58:46 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-01-17 02:58:46 +0000 |
commit | 26d408b17903b7e06d2abd662d36445fea5f502c (patch) | |
tree | 0400e99005f1db451b62798dd610c4cb7fe0854f /fetchmail.c | |
parent | f1fa3732087b628f3950c4624319257b02d4f8d7 (diff) | |
download | fetchmail-26d408b17903b7e06d2abd662d36445fea5f502c.tar.gz fetchmail-26d408b17903b7e06d2abd662d36445fea5f502c.tar.bz2 fetchmail-26d408b17903b7e06d2abd662d36445fea5f502c.zip |
Enable -L to work in foreground.
svn path=/trunk/; revision=2713
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c index a758d5ac..d03a2b0e 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -553,6 +553,12 @@ int main(int argc, char **argv) if (run.poll_interval && !getuid()) signal(SIGHUP, SIG_IGN); } + else if (run.logfile) + { + freopen(run.logfile, "a", stdout); + freopen(run.logfile, "a", stderr); + } + #ifdef linux interface_init(); |