Re: Kill sends signal to wrong process group with job control enabled

Oğuz <[email protected]>
Newsgroups gmane.comp.shells.bash.bugs
Message-ID <CAH7i3LoQuSfeOetXBJeoR5BsS7942cJA4ASv-2Mo4VZn4yx7hQ@mail.gmail.com>
On Monday, March 2, 2026, Ben Ashton <[email protected]> wrote:
>
> As you can see, bash is the only one that translates $! to the PGID of the
> subshell.
>

 I don't think that is what's going on here. It looks more like bash turns
off job control in the subshell and includes `setsid sleep 5 &' in the
subshell's process group, which makes sense.


-- 
Oğuz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.