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


Groups > gnu.bash.bug > #15875 > unrolled thread

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

Started byChet Ramey <chet.ramey@case.edu>
First post2020-02-07 11:16 -0500
Last post2020-02-07 11:16 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

FromChet Ramey <chet.ramey@case.edu>
Date2020-02-07 11:16 -0500
SubjectRe: Bizarre interaction bug involving bash w/ lastpipe + Almquist 'wait'
Message-ID<mailman.442.1581092193.2412.bug-bash@gnu.org>
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/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web