aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2000-01-09 12:19:27 +0000
committerTatsuo Ishii <ishii@postgresql.org>2000-01-09 12:19:27 +0000
commit85b309ee8f55daaff7acbcc40a6b25ff8589faf8 (patch)
tree0893eb167bca0264e704bdbe4f09157c011854aa /src
parentac0d141ead17154723a4168f492304ae82dceca0 (diff)
downloadpostgresql-85b309ee8f55daaff7acbcc40a6b25ff8589faf8.tar.gz
postgresql-85b309ee8f55daaff7acbcc40a6b25ff8589faf8.zip
Add SetPidFile() and friends.
Diffstat (limited to 'src')
-rw-r--r--src/include/miscadmin.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h
index a26024f7247..4212c50dc5f 100644
--- a/src/include/miscadmin.h
+++ b/src/include/miscadmin.h
@@ -11,7 +11,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: miscadmin.h,v 1.45 1999/10/23 03:13:30 tgl Exp $
+ * $Id: miscadmin.h,v 1.46 2000/01/09 12:19:27 ishii Exp $
*
* NOTES
* some of the information in this file will be moved to
@@ -195,4 +195,16 @@ extern bool IsNormalProcessingMode(void);
extern void SetProcessingMode(ProcessingMode mode);
extern ProcessingMode GetProcessingMode(void);
+/*
+ * "postmaster.pid" is a file containing postmaster's pid, being
+ * created uder $PGDATA upon postmaster's starting up. When postmaster
+ * shuts down, it will be unlinked.
+*/
+#define PIDFNAME "postmaster.pid"
+
+extern void SetPidFname(char *datadir);
+extern char *GetPidFname(void);
+extern void UnlinkPidFile(void);
+extern int SetPidFile(pid_t pid);
+
#endif /* MISCADMIN_H */