Allow SIGINT (Ctrl-C) to stop the fuzzer

This commit is contained in:
Pasi Kallinen
2023-12-17 11:28:13 +02:00
parent 3d27d8e998
commit a2aa4edd51
+1
View File
@@ -556,6 +556,7 @@ done1(int sig_unused UNUSED)
#ifndef NO_SIGNAL #ifndef NO_SIGNAL
(void) signal(SIGINT, SIG_IGN); (void) signal(SIGINT, SIG_IGN);
#endif #endif
iflags.debug_fuzzer = FALSE;
if (flags.ignintr) { if (flags.ignintr) {
#ifndef NO_SIGNAL #ifndef NO_SIGNAL
(void) signal(SIGINT, (SIG_RET_TYPE) done1); (void) signal(SIGINT, (SIG_RET_TYPE) done1);