Date: Tue, 8 Sep 1998 06:16:52 -0700 (PDT) From: Martin Cracauer <cracauer@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/bin/sh jobs.c jobs.h trap.c Message-ID: <199809081316.GAA12283@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
cracauer 1998/09/08 06:16:52 PDT Modified files: bin/sh jobs.c jobs.h trap.c Log: If traps are set, they are now executed even when a signal-blocking foreground child is running. Formerly, traps were exceuted after the next child exit. The enables the user to put a breaking wrapper around a blocking application: (trap 'echo trap ; exit 1' 2; ./pestyblocker; echo -n) The "echo -n" after the child call is needed to prevent sh from optimizing the trap-executing shell away. I'm working on this. Revision Changes Path 1.23 +7 -4 src/bin/sh/jobs.c 1.9 +2 -1 src/bin/sh/jobs.h 1.15 +18 -5 src/bin/sh/trap.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809081316.GAA12283>