1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* signal.c (interrupt_init): needs to pass nil for Interrupt.

[ruby-core:11038]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-05-29 17:13:05 +00:00
parent 290569b06c
commit 06eeec8a40
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,7 @@
Wed May 30 02:09:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
Wed May 30 02:14:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* signal.c (interrupt_init): needs to pass nil for Interrupt.
[ruby-core:11038]
* signal.c (trap): fixed segfaults. [ruby-dev:30830]

View file

@ -262,9 +262,9 @@ interrupt_init(int argc, VALUE *argv, VALUE self)
{
VALUE args[2];
rb_scan_args(argc, argv, "01", &args[1]);
args[0] = INT2FIX(SIGINT);
return rb_call_super(argc + 1, args);
rb_scan_args(argc, argv, "01", &args[1]);
return rb_call_super(2, args);
}
void