src/backend/utils/init/miscinit.c
/*
 * Create a lockfile for the specified Unix socket file.
 */
Create a lockfile for the specified Unix socket file.
Create a lockfile for the specified Unix socket file .
void
CreateSocketLockFile(const char *socketfile, bool amPostmaster,
					 const char *socketDir)
{
	char		lockfile[MAXPGPATH];
	snprintf(lockfile, sizeof(lockfile), "%s.lock", socketfile);
	CreateLockFile(lockfile, amPostmaster, socketDir, false, socketfile);
}
void CreateSocketLockFile ( const char * socketfile , bool amPostmaster , const char * socketDir ) { char lockfile [ MAXPGPATH ] ; snprintf ( lockfile , sizeof ( lockfile ) , " " , socketfile ) ; CreateLockFile ( lockfile , amPostmaster , socketDir , false , socketfile ) ; }
Create a lockfile for the specified Unix socket file.
Create a lockfile for the specified Unix socket file .