Message ID | 20151207131833.GC735@joyent.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Herbert Xu |
Headers | show |
diff --git a/src/trap.c b/src/trap.c index 82d4263..2d20c3f 100644 --- a/src/trap.c +++ b/src/trap.c @@ -112,7 +112,7 @@ trapcmd(int argc, char **argv) } return 0; } - if (!ap[1]) + if ((!ap[1]) || (decode_signal(*ap, 0) >= 0)) action = NULL; else action = *ap++;