Suppressing messages from CSH shell; bug in 4.2 sub-shells

idallen at watmath.UUCP idallen at watmath.UUCP
Mon Feb 20 09:51:32 AEST 1984


Under 4.1bsd, one could say to the CSH shell:
    % (process &)
Since sub-shells have no job control, you got no "[1] 12345" message.

This almost works under 4.2bsd, unless the process produces output to
the terminal and you have "stty tostop" set.  The TOSTOP will cause
a TTOU signal to be sent to the offending process, causing it to die
silently and witout a trace.  Try "stty tostop;(date &)" in the 4.2
/bin/csh.  A fix for this, which allows processes in sub-shells to
produce output, is to ignore the TTOU signal in processes spawned from
sub-shells.
-- 
        -IAN!  (Ian! D. Allen)      University of Waterloo



More information about the Comp.unix.wizards mailing list