|
From: | Chet Ramey |
Subject: | Re: Does Bash 5.1 block SIGINT until here-document is ready? |
Date: | Sun, 13 Dec 2020 12:42:57 -0500 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 |
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 chet@case.edu http://tiswww.cwru.edu/~chet/
[Prev in Thread] | Current Thread | [Next in Thread] |