NetBSD/bin
kre 7aa4a7e25f Avoid a core dump if a child process that is not one of our
children happens to exit while we are waiting for another child
to exit.

This can happen with code like

	sh -c '
		sleep 5 &
		exec sh -c "sleep 10 & wait !$"
	      '

when the inner "sh" is waiting for the 10 second sleep to be
done, the 5 second sleep started earlier terminates.   It is
a child of our process, as the inner shell is the same process
as the outer one, but not a known child (the inner shell has no
idea what the outer one did before it started).

This was observed in the wild by Martijn Dekker (where the outer
shell was bash but that's irrelevant).

XXX pullup -9
2020-02-07 02:06:12 +00:00
..
cat Add cross reference to tac(1). 2017-10-02 08:24:17 +00:00
chio typo: unvalid -> invalid 2017-10-16 17:08:35 +00:00
chmod Use Ex. 2017-07-04 06:46:51 +00:00
cp PR/54564: Jan Schaumann: cp of a fifo yields an empty file 2019-09-23 18:01:09 +00:00
csh bin/csh: Fix the -Wclobber warning. 2020-02-05 20:06:17 +00:00
date Remove trailing whitespace and Tn macro. 2018-01-27 18:59:38 +00:00
dd copy libc's swab.c into dd as dd_swab(), and remove the restrict. 2019-10-04 08:57:37 +00:00
df we don't need root anymore. 2019-09-23 15:24:44 +00:00
domainname Use __dead 2011-08-29 14:51:17 +00:00
echo Use Ex. 2017-07-04 06:46:51 +00:00
ed Unifdef compatibility for broken realloc. 2019-01-04 19:13:58 +00:00
expr Add a missing check to handle correctly 0 * 0 in expr(1) 2018-06-27 17:23:36 +00:00
hostname Remove options added in 1.18, commitid: UhxHPgtT2Pzeg4Yw due to some 2014-02-13 12:00:29 +00:00
kill Reverse a decision made when the printsignals() routines from 2018-12-12 20:22:43 +00:00
ksh Avoid arithmetics on strings. 2019-10-29 16:19:59 +00:00
ln Update usage to include -w 2018-08-26 23:01:06 +00:00
ls Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
mkdir Use Ex. Remove superfluous Pp. 2017-07-04 06:49:35 +00:00
mt Bump date for previous. 2018-09-01 07:26:56 +00:00
mv Use Ex. 2017-07-04 06:50:04 +00:00
pax introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
ps ps(1): Guard freeing the memory of pinfo with __NO_LEAKS. 2019-09-15 15:27:50 +00:00
pwd Use Ex. 2017-07-04 06:50:04 +00:00
rcmd Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
rcp allocate a separate buffer in each call to sink(). 2012-05-07 15:22:54 +00:00
rm Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
rmdir PR/48182: Fix rmdir -p handling of top-level (root) directory. 2017-08-10 22:52:13 +00:00
sh Avoid a core dump if a child process that is not one of our 2020-02-07 02:06:12 +00:00
sleep Deal with overflow when the sleep duration given is a simple 2019-03-10 15:18:45 +00:00
stty Don't fail when the line discipline ioctl fails (since it secondary 2019-09-06 16:28:53 +00:00
sync Drop main() prototype. 2016-09-05 01:00:07 +00:00
test Allow SMALL (and TINY) builds of test (for SMALL/TINY builds of sh) 2018-09-13 22:00:58 +00:00
Makefile Remove systrace. Ok core@. 2007-12-31 15:31:24 +00:00
Makefile.inc Default to WARNS=5 2012-03-21 05:47:53 +00:00