1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-26 12:21:12 +03:00

Re-read Unix-socket lock file every so often (every CheckPoint interval,

actually) to ensure that its file access time doesn't get old enough to
tempt a /tmp directory cleaner to remove it.  Still another reason we
should never have put the sockets in /tmp in the first place ...
This commit is contained in:
Tom Lane
2001-01-27 00:05:31 +00:00
parent 1c63587f24
commit 1dc3051088
3 changed files with 43 additions and 3 deletions

View File

@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: miscadmin.h,v 1.79 2001/01/24 19:43:19 momjian Exp $
* $Id: miscadmin.h,v 1.80 2001/01/27 00:05:31 tgl Exp $
*
* NOTES
* some of the information in this file should be moved to
@ -280,6 +280,7 @@ extern ProcessingMode Mode;
extern bool CreateDataDirLockFile(const char *datadir, bool amPostmaster);
extern bool CreateSocketLockFile(const char *socketfile, bool amPostmaster);
extern void TouchSocketLockFile(void);
extern void ValidatePgVersion(const char *path);