Skip to content

Commit 7604267

Browse files
committed
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.
1 parent 7e1c6f1 commit 7604267

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.448 2005/03/24 05:19:05 momjian Exp $
40+
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.449 2005/03/24 18:16:17 momjian Exp $
4141
*
4242
* NOTES
4343
*
@@ -1248,10 +1248,11 @@ ServerLoop(void)
12481248
/*
12491249
* Touch the socket and lock file at least every hour, to
12501250
* ensure that they are not removed by overzealous /tmp-cleaning
1251-
* tasks.
1251+
* tasks. Set to 58 minutes so a cleaner never sees the
1252+
* file as an hour old.
12521253
*/
12531254
now = time(NULL);
1254-
if (now - last_touch_time >= 60 * 60)
1255+
if (now - last_touch_time >= 58 * 60)
12551256
{
12561257
TouchSocketFile();
12571258
TouchSocketLockFile();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy