diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index 0cada0474..c909cae2b 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -4601,8 +4601,9 @@ forkchild(struct job *jp, union node *n, int mode) | |||
4601 | * | 4601 | * |
4602 | * Our solution: ONLY bare $(trap) or `trap` is special. | 4602 | * Our solution: ONLY bare $(trap) or `trap` is special. |
4603 | */ | 4603 | */ |
4604 | /* This is needed to prevent EXIT trap firing and such */ | 4604 | /* Save trap handler strings for trap builtin to print */ |
4605 | trap_ptr = memcpy(xmalloc(sizeof(trap)), trap, sizeof(trap)); | 4605 | trap_ptr = memcpy(xmalloc(sizeof(trap)), trap, sizeof(trap)); |
4606 | /* Fall through into clearing traps */ | ||
4606 | } | 4607 | } |
4607 | clear_traps(); | 4608 | clear_traps(); |
4608 | #if JOBS | 4609 | #if JOBS |