Date: Sat, 13 Jun 2009 21:10:41 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh eval.c trap.c trap.h Message-ID: <200906132111.n5DLBORZ078299@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2009-06-13 21:10:41 UTC
FreeBSD src repository
Modified files:
bin/sh eval.c trap.c trap.h
Log:
SVN rev 194127 on 2009-06-13 21:10:41Z by jilles
Don't skip forking for an external command if any traps are active.
Example:
sh -c '(trap "echo trapped" EXIT; sleep 3)'
now correctly prints "trapped".
With this check, it is no longer necessary to check for -T
explicitly in that case.
This is a useful bugfix by itself and also important because I plan to
skip forking more often.
PR: bin/113860 (part of)
PR: bin/74404 (part of)
Reviewed by: stefanf
Approved by: ed (mentor)
Revision Changes Path
1.60 +1 -1 src/bin/sh/eval.c
1.34 +15 -0 src/bin/sh/trap.c
1.13 +1 -0 src/bin/sh/trap.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906132111.n5DLBORZ078299>
