On Tue, 17 Dec 2013 18:28:12 -0500
Mike Frysinger <vap...@gentoo.org> wrote:

> Use $BASHPID which will be unique even in subshells.
> 
> URL: https://bugs.gentoo.org/487478
> ---
>  bin/phase-helpers.sh | 17 +++++++++++------
>  1 file changed, 11 insertions(+), 6 deletions(-)
> 
> diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
> index ec48c94..1a7ae03 100644
> --- a/bin/phase-helpers.sh
> +++ b/bin/phase-helpers.sh
> @@ -469,6 +469,7 @@ unpack() {
>  
>  econf() {
>       local x
> +     local pid=${BASHPID}

This requires bash 4.0.  I'm all for it, but haters gonna hate.


-- 
Ryan Hill                        psn: dirtyepic_sk
   gcc-porting/toolchain/wxwidgets @ gentoo.org

47C3 6D62 4864 0E49 8E9E  7F92 ED38 BD49 957A 8463

Attachment: signature.asc
Description: PGP signature

Reply via email to