aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/trap.c
Commit message (Expand)AuthorAgeFilesLines
* bin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-3/+0
* bin: Remove ancient SCCS tags.Warner Losh2023-11-271-3/+0
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
* sh: Avoid some headers when NO_HISTORY is set.Bryan Drewery2021-11-251-0/+2
* sh: implement persistent history storageBaptiste Daroussin2021-05-101-0/+3
* sh: fix debug buildPiotr Pawel Stefaniak2021-04-111-4/+0
* sh: Keep ignored SIGINT/SIGQUIT after set in a background jobJilles Tjoelker2020-08-281-2/+8
* sh: Do not ignore INTOFF during a trapJilles Tjoelker2020-07-091-6/+1
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
* sh: Enable interrupts before executing EXIT trap and doing final flush.Jilles Tjoelker2017-06-111-0/+2
* sh: Simplify setinteractive().Jilles Tjoelker2017-04-221-7/+2
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
* sh: Fix use-after-free if a trap replaces itself.Jilles Tjoelker2016-03-281-1/+4
* sh: Fix the trap builtin to be POSIX-compliant for 'trap exit SIG' and 'trap ...Bryan Drewery2015-04-181-1/+1
* sh: Abort a wait builtin on any trapped signal.Jilles Tjoelker2015-01-311-1/+2
* sh: Move some code from onint() to onsig(), making onint() noreturn.Jilles Tjoelker2014-12-211-2/+10
* sh: Eliminate some gotos.Jilles Tjoelker2014-10-051-19/+16
* sh: Remove SIGWINCH handler and just check for resize before every read.Jilles Tjoelker2014-01-141-15/+0
* sh: Allow trapping SIGINT/SIGQUIT after ignore because of '&'.Jilles Tjoelker2013-10-301-1/+3
* sh: Fix race condition with signals and wait or set -T.Jilles Tjoelker2013-09-021-12/+4
* sh: Remove #define MKINIT.Jilles Tjoelker2013-07-251-1/+1
* sh: Fix various compiler warnings.Jilles Tjoelker2013-04-011-1/+1
* sh: When executing a trap, keep exit status along with evalskip.Jilles Tjoelker2013-03-031-2/+3
* sh: If a SIGINT or SIGQUIT interrupts "wait", return status 128+sig.Jilles Tjoelker2013-02-231-16/+19
* sh: Fix EINTR race condition in "wait" and "set -T" using sigsuspend().Jilles Tjoelker2012-07-291-0/+8
* sh: Reset pendingsigs before checking pending traps, not after.Jilles Tjoelker2012-07-151-1/+1
* sh: Fix execution of multiple statements in a trap when evalskip is setJean-Sébastien Pédron2012-01-161-1/+32
* sh: Fix out of bounds array access when trap is used with an invalid signal.Jilles Tjoelker2012-01-141-2/+2
* sh: Fix duplicate prototypes for builtins.Jilles Tjoelker2011-06-131-0/+1
* sh: Remove special code for shell scripts without magic number.Jilles Tjoelker2011-02-041-16/+0
* Make sys_signame upper case.Jilles Tjoelker2011-02-041-3/+3
* sh: If exit is used without args from a trap action, exit on the signal.Jilles Tjoelker2011-01-161-4/+23
* sh: Fix some things about -- in trap:Jilles Tjoelker2011-01-151-11/+14
* sh: Make 'trap -l' look like 'kill -l'.Jilles Tjoelker2011-01-141-1/+1
* sh: Make exit without parameters from EXIT trap POSIX-compliant.Jilles Tjoelker2011-01-081-2/+16
* sh: Add a function to print warnings (with command name and newline).Jilles Tjoelker2010-12-211-1/+1
* In the spirit of r90111, depend on c89 and remove the "STATIC" macroDavid E. O'Brien2010-10-131-4/+4
* Consistently use "STATIC" for all functions in order to be able to setDavid E. O'Brien2010-10-131-4/+4
* trap: do not consider a bad signal name a fatal error.Jilles Tjoelker2009-11-211-3/+6
* sh: Use sigaction instead of signal/siginterrupt combination.Jilles Tjoelker2009-11-111-4/+6
* Don't skip forking for an external command if any traps are active.Jilles Tjoelker2009-06-131-0/+15
* Fix the eval command in combination with set -e. Before this change the shellStefan Farfeleder2009-05-311-2/+2
* Whitespace nits.Jens Schweikhardt2006-04-171-4/+4
* Correctly quote the output when showing the installed trap actions.Stefan Farfeleder2005-12-081-6/+5
* Various small code cleanups resulting from a code reviewingRalf S. Engelschall2005-09-061-1/+1
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-061-4/+0
* style(9): wrap at 80 columns.Nate Lawson2004-02-121-3/+5
* Handle proper formatting and a buffer overrun when running an old sh onNate Lawson2004-02-121-7/+28
* Use sys_nsig instead of NSIG for the length of the signal arrays. ThisNate Lawson2004-01-281-4/+4
* Avoid calling el_resize() from a signal handler, even though libeditTim J. Robbins2002-07-241-2/+3