diff options
author | Bruce Momjian <bruce@momjian.us> | 2005-03-24 18:16:17 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2005-03-24 18:16:17 +0000 |
commit | 7604267de88da39dc7d920ad8bdbf67cecf0feb8 (patch) | |
tree | 371eb181b7a0da91885e9a75ed3bfc0f8df58074 | |
parent | 7e1c6f177e904e6b46a22db60b92b70761fb2c47 (diff) | |
download | postgresql-7604267de88da39dc7d920ad8bdbf67cecf0feb8.tar.gz postgresql-7604267de88da39dc7d920ad8bdbf67cecf0feb8.zip |
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.
-rw-r--r-- | src/backend/postmaster/postmaster.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 5d0368c35b2..a8aae43b6fe 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * 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 * @@ -1248,10 +1248,11 @@ ServerLoop(void) /* * Touch the socket and lock file at least every hour, to * 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); - if (now - last_touch_time >= 60 * 60) + if (now - last_touch_time >= 58 * 60) { TouchSocketFile(); TouchSocketLockFile(); |