bug-bash
[Top][All Lists]
Advanced

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

Re: backgrounded children forgotten


From: Chet Ramey
Subject: Re: backgrounded children forgotten
Date: Mon, 12 Dec 2005 11:55:30 -0500
User-agent: Thunderbird 1.5 (Macintosh/20051025)

Aron Griffis wrote:

> Machine Type: x86_64-pc-linux-gnu
> 
> Bash Version: 3.0
> Patch Level: 16
> Release Status: release
> 
> Description: 
>       When 2 processes are backgrounded inside $(...), bash forgets the first 
>       one was a child of the shell.
> 
> Repeat-By:
>       Note this needs to be a script, not cmdline, otherwise $! doesn't work.
> 
>       $ cat demo
>       output=$( 
>           true &
>           pid=$!
>           true &
>           sleep 1
>           wait $pid
>       )

I can't reproduce the problem with bash-3.1.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live Strong.
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]