diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-25 05:14:33 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-25 05:14:33 +0000 |
commit | a722f1c6aae00e2b4a04c8f1431ab1a17227fee6 (patch) | |
tree | 9fc1895bb8780687c3a2a369d7492bd08ced53ac /ext/probeprofiler/probeprofiler.c | |
parent | b4e9b24de62a53d3a467f20cdd6ed1da4f4d2b33 (diff) | |
download | ruby-a722f1c6aae00e2b4a04c8f1431ab1a17227fee6.tar.gz ruby-a722f1c6aae00e2b4a04c8f1431ab1a17227fee6.tar.xz ruby-a722f1c6aae00e2b4a04c8f1431ab1a17227fee6.zip |
* ext/probeprofiler/probeprofiler.c: fix function name and
return value.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/probeprofiler/probeprofiler.c')
-rw-r--r-- | ext/probeprofiler/probeprofiler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/probeprofiler/probeprofiler.c b/ext/probeprofiler/probeprofiler.c index 9d2b1a6c0..9ffb20367 100644 --- a/ext/probeprofiler/probeprofiler.c +++ b/ext/probeprofiler/probeprofiler.c @@ -18,14 +18,14 @@ pprof_hook(rb_event_flag_t flag, VALUE data, VALUE dmyid, VALUE dmyklass) { rb_thread_t *th = GET_THREAD(); - VALUE sig = rb_thread_current_sig(th); + VALUE sig = rb_thread_current_status(th); hash_inc(data, sig); } static VALUE pprof_data(VALUE mod) { - rb_const_get_at(mod, rb_intern("#pprof_data")); + return rb_const_get_at(mod, rb_intern("#pprof_data")); } static VALUE |