bug-bash
[Top][All Lists]
Advanced

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

Re: Named fifo's causing hanging bash scripts


From: Chet Ramey
Subject: Re: Named fifo's causing hanging bash scripts
Date: Fri, 16 Jan 2015 09:09:25 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

On 1/12/15 9:55 AM, address@hidden wrote:

> Bash Version: 4.3
> Patch Level: 33
> Release Status: release
> 
> Description:
>         Named fifo's causing hanging bash scripts like
> 
>         while IFS="|" read a b c ; do
>           [shell code]
>         done < <(shell code)
> 
>         can cause random hangs of the bash.    An strace shows that the bash
>         stays in wait4()

I can't reproduce this.  I spun up a VM running OpenSUSE 13 and ran the
attached script against a version of bash-4.3.33 that was modified to use
FIFOs instead of /dev/fd.  There were no hangs in any of about 30 runs.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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