From 8005831c3a4efae70d6c633cde90b22ab8d5c3ef Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Wed, 6 Jan 2010 11:31:16 +0000 Subject: Don't crashdump on SIGTTIN and SIGTTOU Neither SIGTTIN nor SIGTTOU is a fatal signal; the default handling for them is fine for Crawl (suspending the process until a tty is available for the input/output it needs), but before this change it causes an (incorrect) crashdump. This change simply removes the crashdump in this case, as there isn't actually a crash. Signed-off-by: Stefan O'Rear --- crawl-ref/source/crash-u.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/crash-u.cc') diff --git a/crawl-ref/source/crash-u.cc b/crawl-ref/source/crash-u.cc index b1309b385e..122ce44433 100644 --- a/crawl-ref/source/crash-u.cc +++ b/crawl-ref/source/crash-u.cc @@ -155,6 +155,14 @@ void init_crash_handler() #ifdef SIGPROF if (i == SIGPROF) continue; +#endif +#ifdef SIGTTOU + if (i == SIGTTOU) + continue; +#endif +#ifdef SIGTTIN + if (i == SIGTTIN) + continue; #endif if (i == SIGWINCH) continue; -- cgit v1.2.3-54-g00ecf