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.
This commit is contained in:
parent
474ef55cb9
commit
e1cf329061
@ -451,6 +451,7 @@ sighandler(int sig)
|
|||||||
signaled = true;
|
signaled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef WIN32
|
||||||
/* We don't want SIGQUIT to core dump */
|
/* We don't want SIGQUIT to core dump */
|
||||||
static void
|
static void
|
||||||
sigquit_handler(int sig)
|
sigquit_handler(int sig)
|
||||||
@ -458,7 +459,7 @@ sigquit_handler(int sig)
|
|||||||
signal(SIGINT, SIG_DFL);
|
signal(SIGINT, SIG_DFL);
|
||||||
kill(getpid(), SIGINT);
|
kill(getpid(), SIGINT);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*------------ MAIN ----------------------------------------*/
|
/*------------ MAIN ----------------------------------------*/
|
||||||
int
|
int
|
||||||
@ -480,7 +481,9 @@ main(int argc, char **argv)
|
|||||||
*/
|
*/
|
||||||
(void) signal(SIGUSR1, sighandler);
|
(void) signal(SIGUSR1, sighandler);
|
||||||
(void) signal(SIGINT, sighandler); /* deprecated, use SIGUSR1 */
|
(void) signal(SIGINT, sighandler); /* deprecated, use SIGUSR1 */
|
||||||
|
#ifndef WIN32
|
||||||
(void) signal(SIGQUIT, sigquit_handler);
|
(void) signal(SIGQUIT, sigquit_handler);
|
||||||
|
#endif
|
||||||
|
|
||||||
while ((c = getopt(argc, argv, "cdk:lr:s:t:w:")) != -1)
|
while ((c = getopt(argc, argv, "cdk:lr:s:t:w:")) != -1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user