diff options
author | Bruce Momjian | 2007-01-28 03:50:34 +0000 |
---|---|---|
committer | Bruce Momjian | 2007-01-28 03:50:34 +0000 |
commit | 91ed399517b025ff672d57599a6155350cd84a89 (patch) | |
tree | 420786ef6ee78e445d96ee572069ac6ea73d93a5 /src | |
parent | 9bf559dee3b84e0ed3ab26c0b133fb2035c9312d (diff) |
Use autoconf build-in sys_siglist macro AC_DECL_SYS_SIGLIST, rather than
create our own.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 4 | ||||
-rw-r--r-- | src/include/pg_config.h.in | 7 | ||||
-rw-r--r-- | src/port/exec.c | 4 |
3 files changed, 8 insertions, 7 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 6c4ff16ed8c..f28f38211fc 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.513 2007/01/28 01:12:05 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.514 2007/01/28 03:50:34 momjian Exp $ * * NOTES * @@ -2430,7 +2430,7 @@ LogChildExit(int lev, const char *procname, int pid, int exitstatus) (errmsg("%s (PID %d) was terminated by exception %X", procname, pid, WTERMSIG(exitstatus)), errhint("See C include file \"ntstatus.h\" for a description of the hex value."))); -#elif defined(HAVE_SYS_SIGLIST) +#elif defined(HAVE_DECL_SYS_SIGLIST) ereport(lev, /*------ diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index 52a11c09b27..8d48c9cbc7f 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -91,6 +91,10 @@ don't. */ #undef HAVE_DECL_STRLCPY +/* Define to 1 if you have the declaration of `sys_siglist', and to 0 if you + don't. */ +#undef HAVE_DECL_SYS_SIGLIST + /* Define to 1 if you have the declaration of `vsnprintf', and to 0 if you don't. */ #undef HAVE_DECL_VSNPRINTF @@ -478,9 +482,6 @@ /* Define to 1 if you have the <sys/shm.h> header file. */ #undef HAVE_SYS_SHM_H -/* Define to 1 if you have the global variable 'char *sys_siglist[]'. */ -#undef HAVE_SYS_SIGLIST - /* Define to 1 if you have the <sys/socket.h> header file. */ #undef HAVE_SYS_SOCKET_H diff --git a/src/port/exec.c b/src/port/exec.c index 5834b7f114f..5d7a8f052a7 100644 --- a/src/port/exec.c +++ b/src/port/exec.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/port/exec.c,v 1.50 2007/01/28 02:33:09 momjian Exp $ + * $PostgreSQL: pgsql/src/port/exec.c,v 1.51 2007/01/28 03:50:34 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -586,7 +586,7 @@ pclose_check(FILE *stream) #if defined(WIN32) log_error(_("child process was terminated by exception %X\nSee C include file \"ntstatus.h\" for a description of the hex value."), WTERMSIG(exitstatus)); -#elif defined(HAVE_SYS_SIGLIST) +#elif defined(HAVE_DECL_SYS_SIGLIST) log_error(_("child process was terminated by signal: %s"), WTERMSIG(exitstatus) < NSIG ? sys_siglist[WTERMSIG(exitstatus)] : "unknown signal"); |