mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Revert SIGUSR1 multiplexing patch, per Tom's objection.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.559 2008/12/09 14:28:20 heikki Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.560 2008/12/09 15:59:39 heikki Exp $
|
||||
*
|
||||
* NOTES
|
||||
* this is the "main" module of the postgres backend and
|
||||
@ -2436,23 +2436,6 @@ drop_unnamed_stmt(void)
|
||||
* --------------------------------
|
||||
*/
|
||||
|
||||
/*
|
||||
* proc_sigusr1_handler - handle SIGUSR1 signal.
|
||||
*
|
||||
* SIGUSR1 is multiplexed to handle multiple different events. The signalFlags
|
||||
* array in PGPROC indicates which events have been signaled.
|
||||
*/
|
||||
void
|
||||
proc_sigusr1_handler(SIGNAL_ARGS)
|
||||
{
|
||||
int save_errno = errno;
|
||||
|
||||
if (CheckProcSignal(PROCSIG_CATCHUP_INTERRUPT))
|
||||
HandleCatchupInterrupt();
|
||||
|
||||
errno = save_errno;
|
||||
}
|
||||
|
||||
/*
|
||||
* quickdie() occurs when signalled SIGQUIT by the postmaster.
|
||||
*
|
||||
@ -3197,7 +3180,7 @@ PostgresMain(int argc, char *argv[], const char *username)
|
||||
* of output during who-knows-what operation...
|
||||
*/
|
||||
pqsignal(SIGPIPE, SIG_IGN);
|
||||
pqsignal(SIGUSR1, proc_sigusr1_handler);
|
||||
pqsignal(SIGUSR1, CatchupInterruptHandler);
|
||||
pqsignal(SIGUSR2, NotifyInterruptHandler);
|
||||
pqsignal(SIGFPE, FloatExceptionHandler);
|
||||
|
||||
|
Reference in New Issue
Block a user