1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

Enable SIGTERM and SIGQUIT during client authentication so

the postmaster can kill the forked off processes when shutdown
is requested.

Jan
This commit is contained in:
Jan Wieck
2001-09-07 16:12:49 +00:00
parent d9044b5637
commit 7e26a8241d
5 changed files with 54 additions and 9 deletions

View File

@ -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
@ -965,6 +965,16 @@ die(SIGNAL_ARGS)
errno = save_errno;
}
/*
* 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");
}
/*