summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/core.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/common/core.c b/src/common/core.c
index 8c57f98ea..d38f1597a 100644
--- a/src/common/core.c
+++ b/src/common/core.c
@@ -116,17 +116,18 @@ void signals_init (void)
{
compat_signal(SIGTERM, sig_proc);
compat_signal(SIGINT, sig_proc);
+#ifndef _DEBUG // need unhandled exceptions to debug on Windows
compat_signal(SIGSEGV, sig_proc);
compat_signal(SIGFPE, sig_proc);
-
+#endif
// Signal to create coredumps by system when necessary (crash)
compat_signal(SIGILL, SIG_DFL);
- #ifndef _WIN32
- compat_signal(SIGXFSZ, sig_proc);
- compat_signal(SIGPIPE, sig_proc);
- compat_signal(SIGBUS, SIG_DFL);
- compat_signal(SIGTRAP, SIG_DFL);
- #endif
+#ifndef _WIN32
+ compat_signal(SIGXFSZ, sig_proc);
+ compat_signal(SIGPIPE, sig_proc);
+ compat_signal(SIGBUS, SIG_DFL);
+ compat_signal(SIGTRAP, SIG_DFL);
+#endif
}
#endif