Don't set the signal handler for SIGQUIT on Windows. Buildfarm shows that
authorHeikki Linnakangas <heikki@enterprisedb.com>
Wed, 18 Mar 2009 20:30:35 +0000 (20:30 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Wed, 18 Mar 2009 20:30:35 +0000 (20:30 +0000)
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.

contrib/pg_standby/pg_standby.c

index 8213c6d5413225d969d51dee2d6a4d721094ef05..45ce587a04e855f67b230aa4e75c6e27751e2f17 100644 (file)
@@ -463,6 +463,7 @@ sighandler(int sig)
        signaled = true;
 }
 
+#ifndef WIN32
 /* We don't want SIGQUIT to core dump */
 static void
 sigquit_handler(int sig)
@@ -470,7 +471,7 @@ sigquit_handler(int sig)
        signal(SIGINT, SIG_DFL);
        kill(getpid(), SIGINT);
 }
-
+#endif
 
 /*------------ MAIN ----------------------------------------*/
 int
@@ -508,7 +509,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)
        {