freebsd-skq/bin
Jilles Tjoelker bd11190091 sh: Do not ignore INTOFF during a trap
INTOFF postpones SIGINT processing and INTON enables it again. This is
important so an interactive shell can return to the top level prompt when
Ctrl+C is pressed.

Given that INTON is automatically done when a builtin completes, the part
where onsig() ignores suppressint when in_dotrap is true is both unnecessary
and unsafe. If the trap is for some other signal than SIGINT, arbitrary code
could have been interrupted.

Historically, INTOFF remained in effect for longer.

Reviewed by:	bdrewery
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D25270
2020-07-09 20:53:56 +00:00
..
cat Allow building bin/cat on non-FreeBSD systems 2020-01-16 14:15:00 +00:00
chflags
chio
chmod Correct wording around '-' masks. 2019-03-09 00:30:13 +00:00
cp
csh vfs: add restrictions to read(2) of a directory [1/2] 2020-06-04 18:09:55 +00:00
date Restore the -n flag parsing, but ignore it. 2019-04-24 05:24:10 +00:00
dd Add O_DIRECT flag to DD for cache bypass 2020-06-04 20:47:11 +00:00
df
domainname
echo
ed
expr
freebsd-version Convert freebsd-version to using -v 2019-05-23 17:19:00 +00:00
getfacl
hostname
kenv
kill
ln
ls ls: fix WITHOUT_LS_COLORS build 2020-05-21 15:15:50 +00:00
mkdir
mv
pax
pkill
ps ps(1): don't try to handle non-SMP systems 2020-06-27 20:01:56 +00:00
pwait Remove unused include. 2020-02-02 20:51:28 +00:00
pwd
realpath
rm Remove include of stdint.h. It was added in r241014 for uintmax_t, 2020-04-23 03:46:41 +00:00
rmail
rmdir
setfacl
sh sh: Do not ignore INTOFF during a trap 2020-07-09 20:53:56 +00:00
sleep
stty Some devices take undesired actions when RTS and DTR are 2019-06-12 18:07:04 +00:00
sync
test
tests
uuidgen pkgbase: Create a FreeBSD-utilities package and make it the default one 2019-09-05 14:15:47 +00:00
Makefile
Makefile.inc