* thread.c (thread_start_func_2): remove unused code.
errinfo = th->errinfo; and errinfo = rb_errinfo(); are the same. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1d207fcff0
commit
fdda95ed8c
@ -1,3 +1,9 @@
|
|||||||
|
Thu Nov 29 06:27:55 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
|
* thread.c (thread_start_func_2): remove unused code.
|
||||||
|
errinfo = th->errinfo; and errinfo = rb_errinfo(); are
|
||||||
|
the same.
|
||||||
|
|
||||||
Thu Nov 29 06:24:15 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
Thu Nov 29 06:24:15 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* thread.c (thread_start_func_2): remove unused code. security
|
* thread.c (thread_start_func_2): remove unused code. security
|
||||||
|
1
thread.c
1
thread.c
@ -485,7 +485,6 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_s
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
errinfo = th->errinfo;
|
errinfo = th->errinfo;
|
||||||
if (NIL_P(errinfo)) errinfo = rb_errinfo();
|
|
||||||
if (state == TAG_FATAL) {
|
if (state == TAG_FATAL) {
|
||||||
/* fatal error within this thread, need to stop whole script */
|
/* fatal error within this thread, need to stop whole script */
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user