diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-11-03 02:40:24 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-03 02:40:24 +0100 |
commit | 31787ae2ff33aacdcf2debddd9418b594bef136c (patch) | |
tree | fc44737e4b883482bcc087e8308c0a7b9fe27bae /crawl-ref/source/crash.cc | |
parent | 637089748731402da6c33483b30118d2eebdcc73 (diff) | |
download | crawl-ref-31787ae2ff33aacdcf2debddd9418b594bef136c.tar.gz crawl-ref-31787ae2ff33aacdcf2debddd9418b594bef136c.zip |
Print gdb error messages to the correct descriptor.
At that point, the crash dump is dup2()ed to stdout+stderr and the original
closed.
Diffstat (limited to 'crawl-ref/source/crash.cc')
-rw-r--r-- | crawl-ref/source/crash.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/crash.cc b/crawl-ref/source/crash.cc index aef654b1d1..535f5ea61e 100644 --- a/crawl-ref/source/crash.cc +++ b/crawl-ref/source/crash.cc @@ -404,7 +404,7 @@ void call_gdb(FILE *file) 0 }; execv("/usr/bin/gdb", (char* const*)argv); - fprintf(file, "Failed to start gdb: %s\n", strerror(errno)); + printf("Failed to start gdb: %s\n", strerror(errno)); _exit(0); } return; |