mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* addr2line.c (rb_dump_backtrace_with_lines): should close fd on
edge case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
39e7b2fb94
commit
ca86a063d5
3 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Nov 27 08:16:21 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* addr2line.c (rb_dump_backtrace_with_lines): should close fd on
|
||||
edge case.
|
||||
|
||||
Fri Nov 26 13:33:24 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* addr2line.c: apply a patch from shinichiro.h.
|
||||
|
|
|
@ -499,7 +499,9 @@ rb_dump_backtrace_with_lines(int num_traces, void **trace, char **syms)
|
|||
/* async-signal unsafe */
|
||||
file = (char *)mmap(NULL, filesize, PROT_READ, MAP_SHARED, fd, 0);
|
||||
if (file == MAP_FAILED) {
|
||||
perror("mmap");
|
||||
int e = errno;
|
||||
close(fd);
|
||||
fprintf(stderr, "mmap: %s\n", strerror(e));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#define RUBY_VERSION "1.9.3"
|
||||
#define RUBY_RELEASE_DATE "2010-11-26"
|
||||
#define RUBY_RELEASE_DATE "2010-11-27"
|
||||
#define RUBY_PATCHLEVEL -1
|
||||
#define RUBY_BRANCH_NAME "trunk"
|
||||
|
||||
#define RUBY_RELEASE_YEAR 2010
|
||||
#define RUBY_RELEASE_MONTH 11
|
||||
#define RUBY_RELEASE_DAY 26
|
||||
#define RUBY_RELEASE_DAY 27
|
||||
|
||||
#include "ruby/version.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue