1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/bin/sh
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
..
bltin Add \a and \e to "echo -e" escape handling. 2000-06-26 22:43:30 +00:00
funcs
alias.c Fixd with alias missing. 2000-07-15 14:34:37 +00:00
alias.h
arith_lex.l Fix warnings, some of them serious because sh violated name 2000-04-20 09:49:16 +00:00
arith.h
arith.y
builtins.def
cd.c
cd.h
error.c
error.h Fix warnings, some of them serious because sh violated name 2000-04-20 09:49:16 +00:00
eval.c Implement the <> redirection operator. 2000-10-03 23:13:14 +00:00
eval.h
exec.c Fix type builtin for absolute paths and relative paths with directory 2000-08-16 12:08:02 +00:00
exec.h
expand.c Fix environment passung to eval'ed commands. 2000-05-15 12:33:17 +00:00
expand.h
histedit.c Fix warnings, some of them serious because sh violated name 2000-04-20 09:49:16 +00:00
init.h
input.c
input.h
jobs.c Fix child's SIGSTOP behaviour in scripts. 2001-02-06 10:29:34 +00:00
jobs.h
machdep.h
mail.c
mail.h
main.c From submitter: 2000-08-16 10:39:43 +00:00
main.h
Makefile
memalloc.c From submitter: 2000-08-16 10:39:43 +00:00
memalloc.h From submitter: 2000-08-16 10:39:43 +00:00
miscbltin.c Fix warnings, some of them serious because sh violated name 2000-04-20 09:49:16 +00:00
mkbuiltins Use secure temporary filenames during build. 2000-11-22 11:05:51 +00:00
mkinit.c
mknodes.c
mksyntax.c
mktokens Use secure temporary filenames during build. 2000-11-22 11:05:51 +00:00
myhistedit.h
mystring.c
mystring.h
nodes.c.pat
nodetypes Implement the <> redirection operator. 2000-10-03 23:13:14 +00:00
options.c Fix warnings, some of them serious because sh violated name 2000-04-20 09:49:16 +00:00
options.h Fix warnings, some of them serious because sh violated name 2000-04-20 09:49:16 +00:00
output.c
output.h
parser.c Implement the <> redirection operator. 2000-10-03 23:13:14 +00:00
parser.h
redir.c Implement the <> redirection operator. 2000-10-03 23:13:14 +00:00
redir.h
sh.1 mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
shell.h Rename the trace() function (that is build only in the -DDEBUG=2 2000-04-20 11:39:11 +00:00
show.c Implement the <> redirection operator. 2000-10-03 23:13:14 +00:00
show.h Rename the trace() function (that is build only in the -DDEBUG=2 2000-04-20 11:39:11 +00:00
TOUR
trap.c
trap.h
var.c
var.h