On 1/2/17 6:33 PM, Russell King wrote: > On Mon, Jan 02, 2017 at 02:06:01PM -0500, Chet Ramey wrote: >> On 1/2/17 6:09 AM, Russell King wrote: >>> On Sun, Jan 01, 2017 at 09:14:45PM -0500, Chet Ramey wrote: >>>> On 1/1/17 4:01 PM, r...@armlinux.org.uk wrote: >>>>> Bash Version: 4.3 >>>>> Patch Level: 30 >>>>> Release Status: release >>>>> >>>>> Description: >>>>> Running: >>>>> while :; do s=$(sleep .005 | cat); echo $s; done | uniq >>>>> in a login shell on a virtual terminal or serial console results >>>>> in the shell randomly logging out after ^C. >>>> >>>> I believe this is fixed in bash-4.4. >>> >>> Thank you for your reply. >>> >>> However, while testing bash-4.4 with the five additional patches (bringing >>> it to 4.4.5) shows that it is not fixed in bash-4.4 - see below. The line >>> from __tty_check_change() is from the debug I added to the kernel, which >>> shows that the reason for the EIO error is because the tty pgrp doesn't >>> match the process' pgrp. >> >> OK. I can't reproduce it on Fedora 25. > > Thank you for your reply. > > Here's more information from the strace logs in case it helps - these > are from the "useful" command rather than the one which I quoted in > the bug report which reproduces it as well - "mii-diag" for the "sleep" > and "sed" for the "cat" part - otherwise identical. Note that I'm > running a modified mii-diag here...
Thanks. With this and the pgrp information you provided in a different message, it was pretty easy to find and fix the problems. The fixes will be in the next devel snapshot. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/