csh jobs/tostop bug
utzoo!decvax!yale-com!brunix!mjb
utzoo!decvax!yale-com!brunix!mjb
Tue Jan 18 01:09:52 AEST 1983
>From sdcarl.4253:
given the following command line
cmd & stty tostop & wait ; fg
``cmd'' produces output and takes a minute
or so to produce it, therefore the stty
exits successfully before it.
WRONG. The man pages for "jobs" clearly states:
If a process which is not in the process group of the terminal
attempts to change the terminals mode, the process group of that
process is sent a SIGTTOU signal, causing the process group to stop.
Csh fires up background processes with their own process groups, thus the
stty will not be in the process group of the terminal and will be stopped
before setting tostop. ``cmd'' is therefore never stopped.
Not afraid to read the documentation,
mike braca {decvax,vax135}!brunix!mjb
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list