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 mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
chio Add static keywords to chio(1). 2011-12-11 20:53:12 +00:00
chmod Update sticky(7) cross references. 2011-05-13 16:29:57 +00:00
cp Don't try to copy a socket after "xxx is a socket (not copied)." message. 2010-06-05 08:50:39 +00:00
csh Update to tcsh 6.18.01. 2012-02-22 03:36:15 +00:00
date Explain that setting an absolute day value can fail and that the month should 2010-06-04 06:56:58 +00:00
dd
df Bump date to today (since I modified it) 2012-03-03 17:52:19 +00:00
domainname
echo echo(1): Clarify portability and mention literal "--" handling. 2010-11-12 22:43:40 +00:00
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 More mdoc nitpicking to improve compatibility to mdocml 2010-06-11 06:04:07 +00:00
hostname
kenv I forgot to bump the manpage date. 2012-05-12 02:49:40 +00:00
kill kill: Note that this is used both as a normal program and a shell builtin. 2011-03-01 21:48:22 +00:00
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 Make sys_signame upper case. 2011-02-04 16:40:50 +00:00
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 Document the new argument parser for sleep(1) and SIGINFO behaviour. 2010-08-02 10:59:23 +00:00
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 Merge from tbemd: 2010-09-13 01:29:51 +00:00
Makefile.inc