fdm will only remove the lock file if it exits normally (success or a normal error), it will not remove it on a fatal error (which means a bug) or on SIGKILL, and it is never going to since I want to know about these cases and fix them. Please send me the -vvvv log of a session (don't forget to remove passwords and anything else sensitive) when it is interrupted and leaves behind a lock file.
On Sat, May 16, 2009 at 01:50:00AM +0530, Ritesh Raj Sarraf wrote: > Package: fdm > Version: 1.6-1 > Severity: normal > > Hi Frank, > > There seems to be a problem with the lock file in fdm. > > I currently have fdm configured to fetch emails fromi a pop3 server every > 10 minutes, using a cron job. > > In .fdm.conf, I'm using the following to ensure that there's only one > instance of fdm running. > > # Lock file path. > set lock-file "${base}/lock" > > > Since I run it on a laptop, which I frequently keep > connecting/disconnecting and hibernating, at some point this gets > triggered while fdm is running. > I guess that is when sometime fdm is dying and is leaving a stale lock > file. > This then leads to no further fdm processes running because they > see the lock file and assume that an fdm process is already running. > Thus I end up with receiving no email messages until I realise that fdm > has left a stale lock file. Once I manually remove it, every thing runs > as normal. > > IMO fdm should handle such error conditions and remove the lock file > when such circumstances trigger. > > > Ritesh > > -- System Information: > Debian Release: squeeze/sid > APT prefers testing > APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') > Architecture: i386 (i686) > > Kernel: Linux 2.6.29-2-686 (SMP w/1 CPU core) > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > > Versions of packages fdm depends on: > ii adduser 3.110 add and remove users and groups > ii libc6 2.9-12 GNU C Library: Shared libraries > ii libpcre3 7.8-2+b1 Perl 5 Compatible Regular > Expressi > ii libssl0.9.8 0.9.8g-16 SSL shared libraries > ii libtdb1 1.1.3~git20090221-1 Trivial Database - shared library > ii zlib1g 1:1.2.3.3.dfsg-13 compression library - runtime > > fdm recommends no packages. > > fdm suggests no packages. > > -- no debconf information > > -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org