aboutsummaryrefslogtreecommitdiffstats
path: root/signal.c
diff options
context:
space:
mode:
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: