From 8f88d85e34fbcdff13ceffd2eb3d4ec8b998ddef Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 25 Sep 2009 12:12:53 +0200 Subject: ash: better comment. no code changes Signed-off-by: Denys Vlasenko --- shell/ash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shell/ash.c') 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) * * 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 -- cgit v1.2.3