mainThe GNU Bourne-Again SHell - Support: sr #108341, cannot wait for children created...

 
 

sr #108341: cannot wait for children created with process substitution

Submitter:  None
Submitted:  Fri 19 Jul 2013 11:17:21 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 19 Jul 2013 11:17:21 AM UTC, original submission:  

The problem exists in at least current master (f281b8f4), 4.2.25(1)-release, 3.2.51(1)-release:

$ ./bash --version
GNU bash, version 4.2.45(2)-release (x86_64-unknown-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ git rev-parse HEAD
f281b8f4f8936b2713966274d9f8508a9f0910e4

$ cat > process-substistution-wait.sh
#!/bin/bash
exec 3> >(sleep 1)
wait $!
pstree -ap $$

$ ./bash process-substistution-wait.sh
process-substistution-wait.sh: line 3: wait: pid 19522 is not a child of this shell
bash,19521 process-substistution-wait.sh
  ├─bash,19522 process-substistution-wait.sh
  │   └─sleep,19523 1
  └─pstree,19524 -ap 19521

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by chet (Updated the item)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-13 chet StatusNone Done

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code