From ca5e85181f7b79cdb1d5425578cebba0432aa5d6 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 13 Aug 2003 08:24:54 +0000 Subject: More minor fixes. svn path=/trunk/; revision=3834 --- lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lock.c') diff --git a/lock.c b/lock.c index 8b3f03f3..7596d611 100644 --- a/lock.c +++ b/lock.c @@ -77,7 +77,7 @@ int lock_state(void) { bkgd = (fscanf(lockfp, "%d %d", &pid, &st) == 2); - if (kill(pid, 0) == -1) { + if (pid == 0 || kill(pid, 0) == -1) { fprintf(stderr,GT_("fetchmail: removing stale lockfile\n")); pid = 0; unlink(lockfile); -- cgit v1.2.3