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.
signaled = true;
}
+#ifndef WIN32
/* We don't want SIGQUIT to core dump */
static void
sigquit_handler(int sig)
signal(SIGINT, SIG_DFL);
kill(getpid(), SIGINT);
}
-
+#endif
/*------------ MAIN ----------------------------------------*/
int
*/
(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)
{