aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-05-07 22:36:27 +0000
committerRichard M. Stallman1995-05-07 22:36:27 +0000
commit66a8ad0fd41daca7da92b0cecc0c504a940f95ba (patch)
treecfcb88c2ec8b6e6f995bb7ad60f8f69cda486c1c /lib-src
parent238959e90276d6bab350a4d5191d1f21d7f0292a (diff)
downloademacs-66a8ad0fd41daca7da92b0cecc0c504a940f95ba.tar.gz
emacs-66a8ad0fd41daca7da92b0cecc0c504a940f95ba.zip
(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)
251 break; 251 break;
252 sleep (1); 252 sleep (1);
253 253
254 /* If lock file is a minute old, unlock it. */ 254 /* If lock file is five minutes old, unlock it.
255 Five minutes should be good enough to cope with crashes
256 and wedgitude, and long enough to avoid being fooled
257 by time differences between machines. */
255 if (stat (lockname, &st) >= 0) 258 if (stat (lockname, &st) >= 0)
256 { 259 {
257 now = time (0); 260 now = time (0);
258 if (st.st_ctime < now - 60) 261 if (st.st_ctime < now - 300)
259 unlink (lockname); 262 unlink (lockname);
260 } 263 }
261 } 264 }