diff options
author | Alex Smith <ais523@bham.ac.uk> | 2010-01-06 11:31:16 +0000 |
---|---|---|
committer | Stefan O'Rear <stefanor@cox.net> | 2010-01-06 07:38:33 -0800 |
commit | 8005831c3a4efae70d6c633cde90b22ab8d5c3ef (patch) | |
tree | fb9b0ac7c40479120ebdda99873a534e1382814d /crawl-ref/source/crash-u.cc | |
parent | 7fc0151d1374a440f91a12de180cbbc8d2ffb1a5 (diff) | |
download | crawl-ref-8005831c3a4efae70d6c633cde90b22ab8d5c3ef.tar.gz crawl-ref-8005831c3a4efae70d6c633cde90b22ab8d5c3ef.zip |
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 <stefanor@cox.net>
Diffstat (limited to 'crawl-ref/source/crash-u.cc')
-rw-r--r-- | crawl-ref/source/crash-u.cc | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -156,6 +156,14 @@ void init_crash_handler() if (i == SIGPROF) continue; #endif +#ifdef SIGTTOU + if (i == SIGTTOU) + continue; +#endif +#ifdef SIGTTIN + if (i == SIGTTIN) + continue; +#endif if (i == SIGWINCH) continue; |