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

Re: zpty intermediate zsh process?



On Sat, Feb 6, 2021 at 10:21 AM Greg Klanderman <gak@xxxxxxxxxxxxxx> wrote:
>
> I can prefix the command with 'exec' to avoid that, but looking at the
> code in zpty.c, maybe the execode() call should just be setting the
> (third) 'exiting' argument to true?

That doesn't seem to cause any of the tests to fail, but I wonder
about side effects when traps are enabled, especially the EXIT trap.

Maybe just passing !sigtrapped[SIGEXIT] as the third argument would
suffice ... or maybe the handling of that trap by zpty is already
iffy.




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