fetchmail-friends
[Top] [All Lists]

Re: [fetchmail]bugreport fetchmail+plugins

2001-09-24 17:25:54
"Eric S. Raymond" schrieb:

Patrick McHardy <kaber(_at_)trash(_dot_)net>:
Hi!
I think i've found a bug in fetchmail. When using plugins, fetchmail
doesn't seem to be calling wait so the plugin ends up as a zombie.
I use ssh to log in to the server and execute imapd, as also mentioned
in the manpage. After each poll, ssh gets zombied. I've added
waitpid(...)
to SockOpen (adding to SockClose showed no effect) and the zombies
disapear the
next time a poll is started. I saw that there is an SIG_CHLD handler,
but
it doesn't seem to get called.

If you want to send a waitpid patch, I'll consider it.

I think if found the problem, the SIGCHLD handler doesn't get installed
if
fetchmail starts up detached. This small patch (against 5.9.0) fixed the
problem on my box, i think, it shouldn't break anything ..

*** fetchmail-5.9.0/fetchmail.c Mon Aug  6 10:54:23 2001
--- fetchmail-5.9.0-patched/fetchmail.c Tue Sep 25 01:53:09 2001
***************
*** 479,487 ****
       */
      if (run.poll_interval)
      {
!       if (nodetach)
!           deal_with_sigchld();
!       else
            daemonize(run.logfile, terminate_run);
        report(stdout, _("starting fetchmail %s daemon \n"), VERSION);
  
--- 479,486 ----
       */
      if (run.poll_interval)
      {
!       deal_with_sigchld();
!       if (!nodetach)
            daemonize(run.logfile, terminate_run);
        report(stdout, _("starting fetchmail %s daemon \n"), VERSION);

Bye Patrick


<Prev in Thread] Current Thread [Next in Thread>