Skip to content
Browse files

is_thread_alive() never raise an exception anymore.

  • Loading branch information...
1 parent 8514ae6 commit b5d74f8b59593329162646b2a022795f00cf11ee @nobu committed Sep 16, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/ruby_debug/ruby_debug.c
View
4 ext/ruby_debug/ruby_debug.c
@@ -262,7 +262,7 @@ threads_table_clear(VALUE table)
st_clear(threads_table->tbl);
}
-static VALUE
+static int
is_thread_alive(VALUE thread)
{
rb_thread_t *th;
@@ -280,7 +280,7 @@ threads_table_check_i(st_data_t key, st_data_t value, st_data_t dummy)
{
return ST_DELETE;
}
- if(rb_protect(is_thread_alive, thread, 0) != Qtrue)
+ if(!is_thread_alive(thread))
{
return ST_DELETE;
}

0 comments on commit b5d74f8

Please sign in to comment.
Something went wrong with that request. Please try again.