Mercurial > emacs
diff lib-src/movemail.c @ 11746:e93b5c05c949
(main): Increase lock timeout to five minutes.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Sun, 07 May 1995 22:36:27 +0000 |
| parents | 496576df5d46 |
| children | e2d27fbff935 |
line wrap: on
line diff
--- a/lib-src/movemail.c Sun May 07 22:29:15 1995 +0000 +++ b/lib-src/movemail.c Sun May 07 22:36:27 1995 +0000 @@ -251,11 +251,14 @@ 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); } }
