On 12/13/20 12:39 PM, Oğuz wrote:
I ran that command on both bash 4.4 and 5.1, and checked PGIDs using pstree; results were parallel:

$ pstree -pg 3255 # 4.4
bash(3255,3255)───bash(3296,3296)───sleep(3297,3255)
$ pstree -pg 3299 # 5.1
bash(3299,3299)───bash(3305,3305)───sleep(3306,3299)

Are you sure a misplacement of the child is the issue here? Or am I missing something?

The issue is whether or not `sleep's process group is the same as the
terminal's process group. If it's not, `sleep' will not get keyboard-
generated signals.

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

Reply via email to