aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorJan Wieck <JanWieck@Yahoo.com>2001-09-07 16:12:49 +0000
committerJan Wieck <JanWieck@Yahoo.com>2001-09-07 16:12:49 +0000
commit7e26a8241d081ff7ba83f3093726639b9b6d1122 (patch)
treedcd54e3cec412395f84b01b3ca55ec48a27d451d /src/backend/tcop/postgres.c
parentd9044b56379da6097310ebed45fb9e1a4db003af (diff)
downloadpostgresql-7e26a8241d081ff7ba83f3093726639b9b6d1122.tar.gz
postgresql-7e26a8241d081ff7ba83f3093726639b9b6d1122.zip
Enable SIGTERM and SIGQUIT during client authentication so
the postmaster can kill the forked off processes when shutdown is requested. Jan
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index ac701704c16..b8c57bb4d7d 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.230 2001/08/04 00:14:43 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.231 2001/09/07 16:12:48 wieck Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -966,6 +966,16 @@ die(SIGNAL_ARGS)
}
/*
+ * Shutdown signal from postmaster during client authentication.
+ * Simply exit(0).
+ */
+void
+authdie(SIGNAL_ARGS)
+{
+ exit(0);
+}
+
+/*
* Query-cancel signal from postmaster: abort current transaction
* at soonest convenient time
*/
@@ -1713,7 +1723,7 @@ PostgresMain(int argc, char *argv[],
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
- puts("$Revision: 1.230 $ $Date: 2001/08/04 00:14:43 $\n");
+ puts("$Revision: 1.231 $ $Date: 2001/09/07 16:12:48 $\n");
}
/*