Skip to content

Commit 85b309e

Browse files
committed
Add SetPidFile() and friends.
1 parent ac0d141 commit 85b309e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/include/miscadmin.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* Copyright (c) 1994, Regents of the University of California
1313
*
14-
* $Id: miscadmin.h,v 1.45 1999/10/23 03:13:30 tgl Exp $
14+
* $Id: miscadmin.h,v 1.46 2000/01/09 12:19:27 ishii Exp $
1515
*
1616
* NOTES
1717
* some of the information in this file will be moved to
@@ -195,4 +195,16 @@ extern bool IsNormalProcessingMode(void);
195195
extern void SetProcessingMode(ProcessingMode mode);
196196
extern ProcessingMode GetProcessingMode(void);
197197

198+
/*
199+
* "postmaster.pid" is a file containing postmaster's pid, being
200+
* created uder $PGDATA upon postmaster's starting up. When postmaster
201+
* shuts down, it will be unlinked.
202+
*/
203+
#define PIDFNAME "postmaster.pid"
204+
205+
extern void SetPidFname(char *datadir);
206+
extern char *GetPidFname(void);
207+
extern void UnlinkPidFile(void);
208+
extern int SetPidFile(pid_t pid);
209+
198210
#endif /* MISCADMIN_H */

0 commit comments

Comments
 (0)