Commit 7604267d authored by Bruce Momjian's avatar Bruce Momjian

Set socket timer to 58 instead of 60 minutes for hour-old cleaners:

         * Touch the socket and lock file at least every hour, to
         * ensure that they are not removed by overzealous /tmp-cleaning
         * tasks.  Set to 58 minutes so a cleaner never sees the
         * file as an hour old.
parent 7e1c6f17
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.448 2005/03/24 05:19:05 momjian Exp $ * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.449 2005/03/24 18:16:17 momjian Exp $
* *
* NOTES * NOTES
* *
...@@ -1248,10 +1248,11 @@ ServerLoop(void) ...@@ -1248,10 +1248,11 @@ ServerLoop(void)
/* /*
* Touch the socket and lock file at least every hour, to * Touch the socket and lock file at least every hour, to
* ensure that they are not removed by overzealous /tmp-cleaning * ensure that they are not removed by overzealous /tmp-cleaning
* tasks. * tasks. Set to 58 minutes so a cleaner never sees the
* file as an hour old.
*/ */
now = time(NULL); now = time(NULL);
if (now - last_touch_time >= 60 * 60) if (now - last_touch_time >= 58 * 60)
{ {
TouchSocketFile(); TouchSocketFile();
TouchSocketLockFile(); TouchSocketLockFile();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment