diff options
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fetchmail.c b/fetchmail.c index 728f7d61..1f090146 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -199,7 +199,7 @@ int main (int argc, char **argv) fprintf(stderr,"fetchmail: removing stale lockfile\n"); pid = -1; bkgd = FALSE; - remove(lockfile); + unlink(lockfile); } fclose(lockfp); } @@ -222,7 +222,7 @@ int main (int argc, char **argv) { fprintf(stderr,"fetchmail: %s fetchmail at %d killed.\n", bkgd ? "background" : "foreground", pid); - remove(lockfile); + unlink(lockfile); exit(0); } } |