Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug in sh emulation



On Dec 11,  8:56pm, Peter Stephenson wrote:
}
} What should happen:
} 
} - Fork for subshell as before
} 
} - attachtty() as before
} 
} - Shell keeps ignoring SIGTTOU because...
} 
} - MONITOR is left on for POSIXJOBs as this is a (...) subshell in the
}   foreground.
} 
} - Fork for pipeline
} 
} - attachtty() works because SIGTTOU is still ignored

I think there's a flaw here:  attachtty() doesn't *work*, in that it
won't actually associate the new process group with the TTY.  Instead
it just won't result in an infinite loop.
 
} - Now stop ignoring SIGTTOU because the pipeline element is not a (...)
}   subshell, it's some random command
} 
} - MONITOR is turned off for the same reason.

I think this will happen as a side-effect of attachtty() failing to do
any other useful work.  Does it not print the "can't set tty pgrp"
error?



Messages sorted by: Reverse Date, Date, Thread, Author