diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2009-03-18 20:30:36 +0000 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2009-03-18 20:30:36 +0000 |
commit | e1cf329061aed52e1948bb9bff870db68975c33d (patch) | |
tree | 4fe2e9052ca8522ef761b5a2949a3bc3ae0fe25c | |
parent | 474ef55cb93a426d15cbd24666525349d9f9f5f4 (diff) |
Don't set the signal handler for SIGQUIT on Windows. Buildfarm shows that
reinstalling the default signal handler doesn't work as it is on Windows.
Presumably core dumps on SIGQUIT are not a problem on Windows, so rather
than figure out what header files or other changes are required to make it
work, just don't bother.
-rw-r--r-- | contrib/pg_standby/pg_standby.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/pg_standby/pg_standby.c b/contrib/pg_standby/pg_standby.c index 8b95682c753..c4ba24a7608 100644 --- a/contrib/pg_standby/pg_standby.c +++ b/contrib/pg_standby/pg_standby.c @@ -451,6 +451,7 @@ sighandler(int sig) signaled = true; } +#ifndef WIN32 /* We don't want SIGQUIT to core dump */ static void sigquit_handler(int sig) @@ -458,7 +459,7 @@ sigquit_handler(int sig) signal(SIGINT, SIG_DFL); kill(getpid(), SIGINT); } - +#endif /*------------ MAIN ----------------------------------------*/ int @@ -480,7 +481,9 @@ main(int argc, char **argv) */ (void) signal(SIGUSR1, sighandler); (void) signal(SIGINT, sighandler); /* deprecated, use SIGUSR1 */ +#ifndef WIN32 (void) signal(SIGQUIT, sigquit_handler); +#endif while ((c = getopt(argc, argv, "cdk:lr:s:t:w:")) != -1) { |