bug-bash
[Top][All Lists]
Advanced

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

Re: Update on parent exiting after background command substitution


From: Chet Ramey
Subject: Re: Update on parent exiting after background command substitution
Date: Thu, 30 Jun 2005 08:57:07 -0400
User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)

jneuheisel@gmail.com wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: i686
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
> -DCONF_VENDOR='pc' -DLOCALEDIR='/tmp/REMOVEME/LOCAL/share/locale' 
> -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H  -I.  -I/tmp/REMOVEME/bash-3.0 
> -I/tmp/REMOVEME/bash-3.0/include -I/tmp/REMOVEME/bash-3.0/lib   -g -O2
> uname output: Linux hal.barc.equinoxsensors.com 2.6.11.11 #1 SMP Wed Jun 1 
> 09:06:51 EDT 2005 i686 i686 i386 GNU/Linux
> Machine Type: i686-pc-linux-gnu
> 
> Bash Version: 3.0
> Patch Level: 16
> Release Status: release
> 
> Description:
>       I had previously sent a bug-report explaining that a parent bash
> process would sometimes exit if a background interactive command was issued
> that contained a process substitution.  I now have found the cause of the
> problem, and detail that below.
> 
> Repeat-By:
>       Begin an interactive bash session.
>       Execute the command "$(:|:)&", without the quotes.
>       Continue to execute the above command until the parent shell
> exits.

This is a classic race condition.  It's already been fixed for the
next version.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    chet@case.edu    http://tiswww.tis.case.edu/~chet/




reply via email to

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