bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FEATURE REQUEST : shell option to automatically terminate child proc


From: Chet Ramey
Subject: Re: FEATURE REQUEST : shell option to automatically terminate child processes on parent death
Date: Mon, 13 Nov 2023 16:45:42 -0500
User-agent: Mozilla Thunderbird

On 11/12/23 4:49 AM, Corto Beau via Bug reports for the GNU Bourne Again SHell wrote:

There's another reason the shell option is not a good idea though ; it tells Bash to set the PDEATHSIG flag on all direct children, but we might want to set the flag only for some specific children. Hence the "run_with_pdeathsig" builtin that sets it only for the child created to execute the command.

If target-specific features are an issue, I won't push that proposal any further.

I'd look at a loadable builtin for this. With that approach, you can be
as selective as you want, and extend it to children or mess around with
subreapers.

A loadable builtin is appropriate for a feature that only works on Linux.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]