diff options
author | Jan Wieck <JanWieck@Yahoo.com> | 2001-09-07 16:12:49 +0000 |
---|---|---|
committer | Jan Wieck <JanWieck@Yahoo.com> | 2001-09-07 16:12:49 +0000 |
commit | 7e26a8241d081ff7ba83f3093726639b9b6d1122 (patch) | |
tree | dcd54e3cec412395f84b01b3ca55ec48a27d451d /src/backend/tcop/postgres.c | |
parent | d9044b56379da6097310ebed45fb9e1a4db003af (diff) | |
download | postgresql-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.c | 14 |
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"); } /* |