summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko2009-09-25 12:12:53 +0200
committerDenys Vlasenko2009-09-25 12:12:53 +0200
commit8f88d85e34fbcdff13ceffd2eb3d4ec8b998ddef (patch)
tree0141165d628ae96316e41dc97d4407698ca22c87 /shell
parent726e1a04f7fdf9a646614352cd8c4a371dda6eda (diff)
downloadbusybox-8f88d85e34fbcdff13ceffd2eb3d4ec8b998ddef.zip
busybox-8f88d85e34fbcdff13ceffd2eb3d4ec8b998ddef.tar.gz
ash: better comment. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 0cada04..c909cae 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -4601,8 +4601,9 @@ forkchild(struct job *jp, union node *n, int mode)
*
* Our solution: ONLY bare $(trap) or `trap` is special.
*/
- /* This is needed to prevent EXIT trap firing and such */
+ /* Save trap handler strings for trap builtin to print */
trap_ptr = memcpy(xmalloc(sizeof(trap)), trap, sizeof(trap));
+ /* Fall through into clearing traps */
}
clear_traps();
#if JOBS