summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/crash.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-01-14 18:50:52 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-01-14 18:51:54 +0100
commitc950d94baf5ed365a529ae40ae44a7032eb2a9a7 (patch)
treee1319f5c1a58b231a8d2f49264a9b1595dbf5299 /crawl-ref/source/crash.cc
parent66c1fb35ba5ef797786269a0937f84b6d01a1b66 (diff)
downloadcrawl-ref-c950d94baf5ed365a529ae40ae44a7032eb2a9a7.tar.gz
crawl-ref-c950d94baf5ed365a529ae40ae44a7032eb2a9a7.zip
Actually call our alarm() on Windows.
There's an implementation of it, yet the call itself was #ifdefed out.
Diffstat (limited to 'crawl-ref/source/crash.cc')
-rw-r--r--crawl-ref/source/crash.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/crash.cc b/crawl-ref/source/crash.cc
index 33df239171..4a4e519809 100644
--- a/crawl-ref/source/crash.cc
+++ b/crawl-ref/source/crash.cc
@@ -66,6 +66,7 @@ template <typename TO, typename FROM> TO nasty_cast(FROM f)
#include "options.h"
#include "state.h"
#include "stuff.h"
+#include "syscalls.h"
#include "threads.h"
/////////////////////////////////////////////////////////////////////////////
@@ -132,9 +133,8 @@ static void _crash_signal_handler(int sig_num)
// internally.
// There's no reliable way to ensure such things won't happen. A pragmatic
// solution is to abort the crash dump.
-#ifdef UNIX
alarm(5);
-#endif
+
// In case the crash dumper is unable to open a file and has to dump
// to stderr.
#ifndef USE_TILE_LOCAL