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

Chet Ramey <[email protected]>
Newsgroups gmane.comp.shells.bash.bugs
Organization ITS, Case Western Reserve University
Message-ID <[email protected]>
On 3/2/26 1:18 AM, Oğuz wrote:
> 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.

This is one of the things that happens, yes.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc (application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE-----

wmMEABEIACMWIQR8ATX7CIqvbGbGULm7WGnwZOp0qwUCaaYMPwUDAAAAAAAKCRC7WGnwZOp0q9xU
AJ9CQgPLITUVcuwzOf+UH1HvS6zrFACglLsLtcIyyRjFS+Awem2O1BxL6n4=
=riUf
-----END PGP SIGNATURE-----
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.