From 076a055acf3c55314de267c62b03191586d79cf6 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 29 May 2004 22:48:23 +0000 Subject: Separate out bgwriter code into a logically separate module, rather than being random pieces of other files. Give bgwriter responsibility for all checkpoint activity (other than a post-recovery checkpoint); so this child process absorbs the functionality of the former transient checkpoint and shutdown subprocesses. While at it, create an actual include file for postmaster.c, which for some reason never had its own file before. --- src/backend/libpq/pqsignal.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/backend/libpq/pqsignal.c') diff --git a/src/backend/libpq/pqsignal.c b/src/backend/libpq/pqsignal.c index dc1f6ccc087..468c062aa43 100644 --- a/src/backend/libpq/pqsignal.c +++ b/src/backend/libpq/pqsignal.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/libpq/pqsignal.c,v 1.33 2004/04/12 16:19:18 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/libpq/pqsignal.c,v 1.34 2004/05/29 22:48:19 tgl Exp $ * * NOTES * This shouldn't be in libpq, but the monitor and some other @@ -46,6 +46,17 @@ #include "libpq/pqsignal.h" +#ifdef HAVE_SIGPROCMASK +sigset_t UnBlockSig, + BlockSig, + AuthBlockSig; +#else +int UnBlockSig, + BlockSig, + AuthBlockSig; +#endif + + /* * Initialize BlockSig, UnBlockSig, and AuthBlockSig. * @@ -153,4 +164,5 @@ pqsignal(int signo, pqsigfunc func) return oact.sa_handler; #endif /* !HAVE_POSIX_SIGNALS */ } + #endif /* WIN32 */ -- cgit v1.2.3