summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-07 00:43:46 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-07 00:43:46 +0000
commit6729808a6dd1e3760c3f8b5453d07f27f35dca45 (patch)
treeaa632da15c9e7f5423686ff1de46d06509efbfc7 /src/common
parent4250071e3c0f382d3b6680f30d2c9bce848a92da (diff)
downloadhercules-6729808a6dd1e3760c3f8b5453d07f27f35dca45.tar.gz
hercules-6729808a6dd1e3760c3f8b5453d07f27f35dca45.tar.bz2
hercules-6729808a6dd1e3760c3f8b5453d07f27f35dca45.tar.xz
hercules-6729808a6dd1e3760c3f8b5453d07f27f35dca45.zip
- Disabled the exception handler on windows debug builds
- Fixed Devotion using WE_BABY's status icon (now uses no icon); if you have a way to determine the correct number, give feedback git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10173 54d463be-8e91-2dee-dedb-b68131a5f0ec
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