diff options
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 0e96f365e83..b860967c3e3 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.172 2000/08/27 19:00:31 petere Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.173 2000/08/29 09:36:47 petere Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -83,7 +83,7 @@ CommandDest whereToSendOutput = Debug; extern void StartupXLOG(void); extern void ShutdownXLOG(void); -extern void HandleDeadLock(int signum); +extern void HandleDeadLock(SIGNAL_ARGS); extern char XLogDir[]; extern char ControlFilePath[]; @@ -129,9 +129,9 @@ int XfuncMode = 0; static int InteractiveBackend(StringInfo inBuf); static int SocketBackend(StringInfo inBuf); static int ReadCommand(StringInfo inBuf); -static void SigHupHandler(int signum); -static void FloatExceptionHandler(int signum); -static void quickdie(int signum); +static void SigHupHandler(SIGNAL_ARGS); +static void FloatExceptionHandler(SIGNAL_ARGS); +static void quickdie(SIGNAL_ARGS); /* * Flag to mark SIGHUP. Whenever the main loop comes around it @@ -705,13 +705,13 @@ pg_exec_query_dest(char *query_string, /* string to execute */ */ void -handle_warn(int signum) +handle_warn(SIGNAL_ARGS) { siglongjmp(Warn_restart, 1); } static void -quickdie(int signum) +quickdie(SIGNAL_ARGS) { PG_SETMASK(&BlockSig); elog(NOTICE, "Message from PostgreSQL backend:" @@ -735,7 +735,7 @@ quickdie(int signum) * Abort transaction and exit */ void -die(int signum) +die(SIGNAL_ARGS) { PG_SETMASK(&BlockSig); @@ -752,7 +752,7 @@ die(int signum) /* signal handler for floating point exception */ static void -FloatExceptionHandler(int signum) +FloatExceptionHandler(SIGNAL_ARGS) { elog(ERROR, "floating point exception!" " The last floating point operation either exceeded legal ranges" @@ -761,7 +761,7 @@ FloatExceptionHandler(int signum) /* signal handler for query cancel signal from postmaster */ static void -QueryCancelHandler(int signum) +QueryCancelHandler(SIGNAL_ARGS) { QueryCancel = true; LockWaitCancel(); @@ -779,7 +779,7 @@ CancelQuery(void) } static void -SigHupHandler(int signum) +SigHupHandler(SIGNAL_ARGS) { got_SIGHUP = true; } @@ -1404,7 +1404,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[]) if (!IsUnderPostmaster) { puts("\nPOSTGRES backend interactive interface "); - puts("$Revision: 1.172 $ $Date: 2000/08/27 19:00:31 $\n"); + puts("$Revision: 1.173 $ $Date: 2000/08/29 09:36:47 $\n"); } /* |