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

Re: PATCH: subshell into a new process group



Hi,

Since you set the 0/0 min/max arguments in bintab, there's no reason
to handle checking *args yourself (code should never be reached, you
just happened to pick the exact same error message I think.

Why is the builtin called syssetpgid when you use setpgrp()?

The manpage I have for these things says that setpgrp() is super
obsolete and not supported, I guess this is the bikeshed part? I've
never used these functions so I can't offer any particular wisdom but
it seems like dragons be here territory to me.

On Sat, May 9, 2026 at 6:17 AM Anthony Heading <ajrh@xxxxxxxx> wrote:
>
> Hi,
>
> I have found this feature useful to allow signals to be sent to precisely bounded subshell trees.  I couldn't find any existing way to achieve it; only the job code and zpty seem be close but neither of them allows exactly this.   There's a bit of bikeshed argument about the name, the old argument-less setpgrp in SysV style is closer in spirit but it obsolescent and inconsistent with BSD, something less cryptic overall might be helpful but the zsystem module if it's the right home tends be be OS level.   Anyway, I'm interested in pre-existing solutions or whether this is a useful feature as is.
>
> Regards
>
> Anthony



-- 
Mikael Magnusson




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