[net.unix-wizards] 4.1 csh bug

lcc.bob@UCLA-LOCUS.ARPA (09/17/84)

From:            Bob English <lcc.bob@UCLA-LOCUS.ARPA>

If you interrupt a command doing backquote expansion, the shell hangs.
Does anyone have a ready bug fix for this?

For those interested, the c-shell forks before doing backquote
expansion.  When the command to be executed is not a built-in
command, the cshell uses vfork() instead of fork().  When the
child does the backquote expansion, it uses the parent's
process/job-control data structure, which doesn't get cleaned up
when the child exits due to an interrupt.

--bob--