diff options
Diffstat (limited to 'src/include/postmaster/postmaster.h')
-rw-r--r-- | src/include/postmaster/postmaster.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/postmaster/postmaster.h b/src/include/postmaster/postmaster.h index f7072f55cf8..be4f8a74989 100644 --- a/src/include/postmaster/postmaster.h +++ b/src/include/postmaster/postmaster.h @@ -32,6 +32,14 @@ extern bool restart_after_crash; #ifdef WIN32 extern HANDLE PostmasterHandle; +#else +extern int postmaster_alive_fds[2]; +/* + * Constants that represent which of postmaster_alive_fds is held by + * postmaster, and which is used in children to check for postmaster death. + */ +#define POSTMASTER_FD_WATCH 0 /* used in children to check for postmaster death */ +#define POSTMASTER_FD_OWN 1 /* kept open by postmaster only */ #endif extern const char *progname; |