summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/crash.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-02 22:08:52 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-02 22:08:52 +0100
commit06db4ab9fbe167a4eb4c6d720ce6a67424d29850 (patch)
treed58fee51e8bb31e4eb30ce852a84285df58f812c /crawl-ref/source/crash.cc
parent141deab41a94bb51868ebf3d127891ec83e958a4 (diff)
downloadcrawl-ref-06db4ab9fbe167a4eb4c6d720ce6a67424d29850.tar.gz
crawl-ref-06db4ab9fbe167a4eb4c6d720ce6a67424d29850.zip
Be more brutal while suiciding when sad about the lack of gdb.
Since it's a crash, unwinding might fail, and there's another copy of our process doing the same already. Heck, we could go for the nuclear option and raise(9).
Diffstat (limited to 'crawl-ref/source/crash.cc')
-rw-r--r--crawl-ref/source/crash.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/crash.cc b/crawl-ref/source/crash.cc
index efbdd43673..aef654b1d1 100644
--- a/crawl-ref/source/crash.cc
+++ b/crawl-ref/source/crash.cc
@@ -405,7 +405,7 @@ void call_gdb(FILE *file)
};
execv("/usr/bin/gdb", (char* const*)argv);
fprintf(file, "Failed to start gdb: %s\n", strerror(errno));
- exit(0);
+ _exit(0);
}
return;
default: