summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-05-07 22:36:27 +0000
committerRichard M. Stallman <rms@gnu.org>1995-05-07 22:36:27 +0000
commit7b7127f9ff0145fd7503afe5891f9e2703f10d16 (patch)
tree25d1ed0e5baf8958d00deaecc7784c308f53af9b /lib-src
parent72081959855dba153f0cf6c96fee351b1a256b7b (diff)
downloademacs-7b7127f9ff0145fd7503afe5891f9e2703f10d16.tar.gz
(main): Increase lock timeout to five minutes.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/movemail.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index 36a837e9310..7160ae206cb 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -251,11 +251,14 @@ main (argc, argv)
break;
sleep (1);
- /* If lock file is a minute old, unlock it. */
+ /* If lock file is five minutes old, unlock it.
+ Five minutes should be good enough to cope with crashes
+ and wedgitude, and long enough to avoid being fooled
+ by time differences between machines. */
if (stat (lockname, &st) >= 0)
{
now = time (0);
- if (st.st_ctime < now - 60)
+ if (st.st_ctime < now - 300)
unlink (lockname);
}
}