aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-10 21:20:35 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-10 21:20:35 +0000
commitad89715a43c50c3d50409730318c42ba9dc96d3f (patch)
tree12a34e96650cef80cd8d6212c4238a9af2a53766 /fetchmail.c
parent53813c522b794b61c7080c40f95a1043912b2dcb (diff)
downloadfetchmail-ad89715a43c50c3d50409730318c42ba9dc96d3f.tar.gz
fetchmail-ad89715a43c50c3d50409730318c42ba9dc96d3f.tar.bz2
fetchmail-ad89715a43c50c3d50409730318c42ba9dc96d3f.zip
Dave Zarzycki's fixes.
svn path=/trunk/; revision=3039
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 1394b567..56849bf2 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -541,7 +541,10 @@ int main(int argc, char **argv)
*/
if (run.poll_interval)
{
- if (!nodetach)
+ deal_with_sigchld();
+ if (nodetach)
+ deal_with_sigchld();
+ else
daemonize(run.logfile, terminate_run);
report(stdout, _("starting fetchmail %s daemon \n"), VERSION);