]> granicus.if.org Git - postgresql/commitdiff
Add SetPidFile() and friends.
authorTatsuo Ishii <ishii@postgresql.org>
Sun, 9 Jan 2000 12:19:27 +0000 (12:19 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Sun, 9 Jan 2000 12:19:27 +0000 (12:19 +0000)
src/include/miscadmin.h

index a26024f72477743f6e647c3cd7385e71e66fcba6..4212c50dc5f5f7055f1407be7f47d626a976f8b9 100644 (file)
@@ -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 */