diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-07-31 20:26:23 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-07-31 20:26:23 +0000 |
commit | 2487d872e025312e7c16f0dd772190c6787efeea (patch) | |
tree | 32a3788fd497c755d9d8683c1ea5fa9f354f73f1 /src/include/commands/async.h | |
parent | a23c6415787bd1aa8f1c44446d689a874a78afea (diff) |
Create a multiplexing structure for signals to Postgres child processes.
This patch gets us out from under the Unix limitation of two user-defined
signal types. We already had done something similar for signals directed to
the postmaster process; this adds multiplexing for signals directed to
backends and auxiliary processes (so long as they're connected to shared
memory).
As proof of concept, replace the former usage of SIGUSR1 and SIGUSR2
for backends with use of the multiplexing mechanism. There are still some
hard-wired definitions of SIGUSR1 and SIGUSR2 for other process types,
but getting rid of those doesn't seem interesting at the moment.
Fujii Masao
Diffstat (limited to 'src/include/commands/async.h')
-rw-r--r-- | src/include/commands/async.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/commands/async.h b/src/include/commands/async.h index 789a8d9c793..5ee10f583c0 100644 --- a/src/include/commands/async.h +++ b/src/include/commands/async.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/commands/async.h,v 1.37 2009/01/01 17:23:58 momjian Exp $ + * $PostgreSQL: pgsql/src/include/commands/async.h,v 1.38 2009/07/31 20:26:23 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -29,8 +29,8 @@ extern void AtSubCommit_Notify(void); extern void AtSubAbort_Notify(void); extern void AtPrepare_Notify(void); -/* signal handler for inbound notifies (SIGUSR2) */ -extern void NotifyInterruptHandler(SIGNAL_ARGS); +/* signal handler for inbound notifies (PROCSIG_NOTIFY_INTERRUPT) */ +extern void HandleNotifyInterrupt(void); /* * enable/disable processing of inbound notifies directly from signal handler. |