freebsd-skq/bin
Jilles Tjoelker 1794251add sh: Fix EINTR race condition in "wait" and "set -T" using sigsuspend().
When waiting for child processes using "wait" or if "set -T" is in effect, a
signal interrupts the wait. Make sure there is no window where the signal
handler may be invoked (setting a flag) just before going to sleep.

There is a similar race condition in the shell language, but scripts can
avoid it by exiting from the trap handler or enforcing synchronization using
a fifo.

If SIGCHLD is not trapped, a signal handler must be installed for it. Only
install this handler for the duration of the wait to avoid triggering
unexpected [EINTR] errors elsewhere.

Note that for some reason only SIGINT and SIGQUIT interrupt a "wait"
command. This remains the case.
2012-07-29 18:04:38 +00:00
..
cat Use proper error message when fstat(2) fails on stdout. 2012-07-20 08:33:23 +00:00
chflags
chio Add static keywords to chio(1). 2011-12-11 20:53:12 +00:00
chmod
cp
csh Update to tcsh 6.18.01. 2012-02-22 03:36:15 +00:00
date
dd
df Bump date to today (since I modified it) 2012-03-03 17:52:19 +00:00
domainname
echo
ed Add build option MK_ED_CRYPTO to control whether ed(1) is to have the 2012-05-19 17:55:49 +00:00
expr Remove redundant declaration of yyparse 2012-05-22 03:01:54 +00:00
getfacl
hostname
kenv I forgot to bump the manpage date. 2012-05-12 02:49:40 +00:00
kill
ln Put some static keywords in the source code. 2011-10-31 08:59:17 +00:00
ls Add build opton MK_LS_COLORS to control whether ls(1) supports colors 2012-05-19 18:05:00 +00:00
mkdir Put some static keywords in the source code. 2011-10-31 08:59:17 +00:00
mv Put some static keywords in the source code. 2011-10-31 08:59:17 +00:00
pax Fix a bunch of typos and a couple of whitespace nits. 2011-05-22 14:03:38 +00:00
pkill
ps ps: Fix memory leak when showing start/lstart for swapped-out process. 2012-07-15 15:22:13 +00:00
pwait Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
pwd
rcp None of these programs actually use auth.conf. 2012-06-11 16:18:39 +00:00
realpath Make `realpath'' behave like `realpath .''. 2011-06-21 19:34:57 +00:00
rm Polish previous revision: if the fts_* routines have lstat()'ed the 2012-06-20 21:10:38 +00:00
rmail
rmdir
setfacl Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
sh sh: Fix EINTR race condition in "wait" and "set -T" using sigsuspend(). 2012-07-29 18:04:38 +00:00
sleep
stty stty: Mark usage() __dead2. 2012-07-15 21:12:22 +00:00
sync
test Minor mdoc nits. 2012-05-13 14:16:04 +00:00
uuidgen Mention the upper hard limit for -n option. Patch slightly modified 2012-05-23 16:19:19 +00:00
Makefile
Makefile.inc