diff options
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 5 |
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); |