diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-04-21 23:58:25 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-04-21 23:58:25 -0700 |
commit | a9a365326ea0f7a37852d25adfb03049c0b24c22 (patch) | |
tree | 0698db8ccf5631337433d76ae4d76a01fdd6f594 /ext/posix_mq | |
parent | aa9beecf64739ea084158ff63a92f626bfb5717d (diff) | |
download | ruby_posix_mq-a9a365326ea0f7a37852d25adfb03049c0b24c22.tar.gz |
Instead of blindly defining a module, this is more flexible in case Signal in Ruby itself becomes something other than a module.
Diffstat (limited to 'ext/posix_mq')
-rw-r--r-- | ext/posix_mq/posix_mq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/posix_mq/posix_mq.c b/ext/posix_mq/posix_mq.c index d9abf1e..4c9d2ea 100644 --- a/ext/posix_mq/posix_mq.c +++ b/ext/posix_mq/posix_mq.c @@ -702,7 +702,7 @@ static int lookup_sig(VALUE sig) sig = rb_str_new(ptr + 3, len - 3); if (!list) { - VALUE mSignal = rb_define_module("Signal"""); /* avoid RDoc */ + VALUE mSignal = rb_const_get(rb_cObject, rb_intern("Signal")); list = rb_funcall(mSignal, rb_intern("list"), 0, 0); rb_global_variable(&list); |