summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-30 14:52:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-30 14:52:21 +0000
commit46a14a29fc67e0a6212d28e60cb39375bfbea089 (patch)
tree72744637945438b6ab31b0ef8d27107010826646 /signal.c
parent1ffb788aaa0eea607812dc2941f96b9510e8e339 (diff)
downloadruby-46a14a29fc67e0a6212d28e60cb39375bfbea089.tar.gz
* signal.c (trap): non-string trap hander was ignored.
fixed: [ruby-dev:26417] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/signal.c b/signal.c
index 0adc447313..9c168d1fce 100644
--- a/signal.c
+++ b/signal.c
@@ -652,6 +652,9 @@ trap(arg)
if (func == SIG_IGN || func == SIG_DFL) {
command = 0;
}
+ else {
+ command = arg->cmd;
+ }
switch (TYPE(arg->sig)) {
case T_FIXNUM: