diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-30 14:52:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-30 14:52:21 +0000 |
commit | 46a14a29fc67e0a6212d28e60cb39375bfbea089 (patch) | |
tree | 72744637945438b6ab31b0ef8d27107010826646 /signal.c | |
parent | 1ffb788aaa0eea607812dc2941f96b9510e8e339 (diff) | |
download | ruby-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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: |