summaryrefslogtreecommitdiff
path: root/bin/sh/trap.c
AgeCommit message (Expand)Author
2023-11-26bin: Automated cleanup of cdefs and other formattingWarner Losh
2023-11-26bin: Remove ancient SCCS tags.Warner Losh
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
2021-11-24sh: Avoid some headers when NO_HISTORY is set.Bryan Drewery
2021-05-10sh: implement persistent history storageBaptiste Daroussin
2021-04-11sh: fix debug buildPiotr Pawel Stefaniak
2020-08-28sh: Keep ignored SIGINT/SIGQUIT after set in a background jobJilles Tjoelker
2020-07-09sh: Do not ignore INTOFF during a trapJilles Tjoelker
2017-11-20General further adoption of SPDX licensing ID tags.Pedro F. Giffuni
2017-06-11sh: Enable interrupts before executing EXIT trap and doing final flush.Jilles Tjoelker
2017-04-22sh: Simplify setinteractive().Jilles Tjoelker
2017-02-28Renumber copyright clause 4Warner Losh
2016-03-28sh: Fix use-after-free if a trap replaces itself.Jilles Tjoelker
2015-04-18sh: Fix the trap builtin to be POSIX-compliant for 'trap exit SIG' and 'trap ...Bryan Drewery
2015-01-31sh: Abort a wait builtin on any trapped signal.Jilles Tjoelker
2014-12-21sh: Move some code from onint() to onsig(), making onint() noreturn.Jilles Tjoelker
2014-10-05sh: Eliminate some gotos.Jilles Tjoelker
2014-01-14sh: Remove SIGWINCH handler and just check for resize before every read.Jilles Tjoelker
2013-10-30sh: Allow trapping SIGINT/SIGQUIT after ignore because of '&'.Jilles Tjoelker
2013-09-02sh: Fix race condition with signals and wait or set -T.Jilles Tjoelker
2013-07-25sh: Remove #define MKINIT.Jilles Tjoelker
2013-04-01sh: Fix various compiler warnings.Jilles Tjoelker
2013-03-03sh: When executing a trap, keep exit status along with evalskip.Jilles Tjoelker
2013-02-23sh: If a SIGINT or SIGQUIT interrupts "wait", return status 128+sig.Jilles Tjoelker
2012-07-29sh: Fix EINTR race condition in "wait" and "set -T" using sigsuspend().Jilles Tjoelker
2012-07-15sh: Reset pendingsigs before checking pending traps, not after.Jilles Tjoelker
2012-01-16sh: Fix execution of multiple statements in a trap when evalskip is setJean-Sébastien Pédron
2012-01-14sh: Fix out of bounds array access when trap is used with an invalid signal.Jilles Tjoelker
2011-06-13sh: Fix duplicate prototypes for builtins.Jilles Tjoelker
2011-02-04sh: Remove special code for shell scripts without magic number.Jilles Tjoelker
2011-02-04Make sys_signame upper case.Jilles Tjoelker
2011-01-16sh: If exit is used without args from a trap action, exit on the signal.Jilles Tjoelker
2011-01-15sh: Fix some things about -- in trap:Jilles Tjoelker
2011-01-14sh: Make 'trap -l' look like 'kill -l'.Jilles Tjoelker
2011-01-08sh: Make exit without parameters from EXIT trap POSIX-compliant.Jilles Tjoelker
2010-12-21sh: Add a function to print warnings (with command name and newline).Jilles Tjoelker
2010-10-13In the spirit of r90111, depend on c89 and remove the "STATIC" macroDavid E. O'Brien
2010-10-13Consistently use "STATIC" for all functions in order to be able to setDavid E. O'Brien
2009-11-21trap: do not consider a bad signal name a fatal error.Jilles Tjoelker
2009-11-11sh: Use sigaction instead of signal/siginterrupt combination.Jilles Tjoelker
2009-06-13Don't skip forking for an external command if any traps are active.Jilles Tjoelker
2009-05-31Fix the eval command in combination with set -e. Before this change the shellStefan Farfeleder
2006-04-17Whitespace nits.Jens Schweikhardt
2005-12-08Correctly quote the output when showing the installed trap actions.Stefan Farfeleder
2005-09-06Various small code cleanups resulting from a code reviewingRalf S. Engelschall
2004-04-06Remove clause 3 from the UCB licenses.Mark Murray
2004-02-12style(9): wrap at 80 columns.Nate Lawson
2004-02-12Handle proper formatting and a buffer overrun when running an old sh onNate Lawson
2004-01-28Use sys_nsig instead of NSIG for the length of the signal arrays. ThisNate Lawson
2002-07-24Avoid calling el_resize() from a signal handler, even though libeditTim J. Robbins