Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15875

Re: Bizarre interaction bug involving bash w/ lastpipe + Almquist 'wait'

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Bizarre interaction bug involving bash w/ lastpipe + Almquist 'wait'
Date 2020-02-07 11:16 -0500
Message-ID <mailman.442.1581092193.2412.bug-bash@gnu.org> (permalink)
References <10e3756b-5e8f-ba00-df0d-b36c93fa2281@inlv.org> <f8b210f5-dd59-2c7f-05d4-be0a89316d3d@gigawatt.nl> <ec73159a-2c24-b91c-c23e-5429339752aa@case.edu>

Show all headers | View raw


On 2/6/20 2:29 PM, Harald van Dijk wrote:
> On 06/02/2020 16:12, Martijn Dekker wrote:

>> When executing test.bash with dash, gwsh, Busybox ash, or FreeBSD sh,
>> then test.ash simply waits forever on executing 'wait "$!"'.
> 
> Nice test. bash leaves the process in a state where SIGCHLD is blocked, and
> the various ash-based shells do not unblock it. 

Thanks for the investigation. Bash does leave SIGCHLD blocked in this exact
set of circumstances (lastpipe+function+return at end of pipeline+exec).

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Bizarre interaction bug involving bash w/ lastpipe + Almquist 'wait' Chet Ramey <chet.ramey@case.edu> - 2020-02-07 11:16 -0500

csiph-web