freebsd-nq/bin
Martin Cracauer adce2a1b4b Fix child's SIGSTOP behaviour in scripts.
When a child is receiving SIGSTOP, eval continues with the next
command.  While that is correct for the interactive case (Control-Z
and you get the prompt back), it is wrong for a shellscript, which
just continues with the next command, never again waiting for the
stopped child.  Noted when childs from cronjobs were stopped, just to
make more processes (by wosch).

The fix is not to return from a job wait when the wait returned for a
stopped child while in non-interactive mode.  This bahaviour seems to
be what bash2 and ksh implement.  I tested for correct behaviour for
finnaly killing the child with and without forgrounding it first.
When not foregrouding before killing, the shell continues with the
script, which is what the other shells do as well.

Reviewed by:	Silence on -current
2001-02-06 10:29:34 +00:00
..
cat Prepare for mdoc(7)NG. 2000-12-15 17:37:31 +00:00
chflags Prepare for mdoc(7)NG. 2000-12-19 16:00:12 +00:00
chio mdoc(7) police: simplify construct. 2000-12-21 15:31:28 +00:00
chmod Prepare for mdoc(7)NG. 2001-01-16 09:08:22 +00:00
cp In the hope of saving others from hours of tedious recovery work, 2001-02-04 02:02:38 +00:00
csh Activate Greek message catalog 2001-01-17 16:54:43 +00:00
date Document the restrictions on changing times in high securelevels. 2001-01-17 21:27:54 +00:00
dd mdoc(7) police: use the new features of the Nm macro. 2000-11-20 11:39:41 +00:00
df mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
domainname mdoc(7) police: removed history info from the .Os call. 2000-12-14 11:40:41 +00:00
echo mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
ed mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
expr Prepare for mdoc(7)NG. 2000-12-15 17:37:31 +00:00
hostname mdoc(7) police: use the new features of the Nm macro. 2000-11-20 11:39:41 +00:00
kenv kenv(1) first appeared in FreeBSD 4.1.1, not FreeBSD 5.0. 2000-11-23 11:21:35 +00:00
kill mdoc(7) police: use the new features of the Nm macro. 2000-11-20 11:39:41 +00:00
ln Note that rmdir(2) does not follow symbolic links. 2001-01-24 23:49:59 +00:00
ls mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
mkdir Special case the error reporting when errno is ENOTDIR or ENOENT. 2001-01-14 12:08:50 +00:00
mv mdoc(7) police: use the new features of the Nm macro. 2000-11-20 11:39:41 +00:00
pax mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
ps mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
pwd Don't call err() with user data and without a format string 2000-11-26 08:50:12 +00:00
rcp mdoc(7) police: use the new features of the Nm macro. 2000-11-20 11:39:41 +00:00
realpath mdoc(7) police: minor fixes. 2000-11-24 11:39:39 +00:00
rm Display pathname of item being rm'ed. 2000-12-20 08:31:26 +00:00
rmail Add a MAINTAINER= line so people know who to blame 2000-10-26 23:02:36 +00:00
rmdir mdoc(7) police: use the new features of the Nm macro. 2000-11-20 11:39:41 +00:00
sh Fix child's SIGSTOP behaviour in scripts. 2001-02-06 10:29:34 +00:00
sleep Prepare for mdoc(7)NG. 2000-12-15 17:37:31 +00:00
stty mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
sync mdoc(7) police: use the new features of the Nm macro. 2000-11-20 11:39:41 +00:00
test mdoc(7) police: use the new features of the Nm macro. 2000-11-20 11:39:41 +00:00
Makefile Finish the job of conditionalizing UUCP by preventing files in /etc/uucp 2000-10-29 06:57:59 +00:00
Makefile.inc $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00