fetchmail-friends
[Top] [All Lists]

[fetchmail]Re: Bug#202787: edit rc file for sure loop

2004-03-25 21:40:14
On Tue, Mar 16, 2004 at 09:55:17PM -0600, Graham Wilson wrote:
On Wed, Oct 29, 2003 at 02:15:52PM +0530, Sunil Shetye wrote:
This patch is not applicable for 6.2.*. The lockfile is read after the
call to load_params().

The call to lock_state seems to come before load_params, so I am not
sure what you mean by this.

Regardless, I have tested this patch and can confirm that the problem
exists in 6.2.5, and that the patch above fixes it. Can anybody else
confirm this, or does anyone see any further problems with the patch?

While working on this bug, I was wondering what the following was useful
for in the fetchmail.c:

  if (quitmode)
  {
    ...
    else if (getpid() == pid)
    {
      /* this test enables re-execing on a changed rcfile */
      if (argc == 2)
      {
        fprintf(stderr,GT_("fetchmail: no other fetchmail is running\n"));
        exit(PS_EXCLUDE);
      }
    }
    ...
  }

I'm not really clear on when the code above would ever actually run, or
if it did, what its point is.

-- 
gram

Attachment: signature.asc
Description: Digital signature

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