From 26d408b17903b7e06d2abd662d36445fea5f502c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 17 Jan 2000 02:58:46 +0000 Subject: Enable -L to work in foreground. svn path=/trunk/; revision=2713 --- fetchmail.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fetchmail.c') 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(); -- cgit v1.2.3