summary refs log tree commit diff
path: root/src/funcs/suspend
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2020-12-02 16:31:45 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2020-12-23 18:56:45 +1100
commit5f770b1297ea88c999a65710ead199e0a46d8459 (patch)
tree966569a940e75f0ece40af67111265c0b8e565af /src/funcs/suspend
parentRelease 0.5.11.2. (diff)
downloaddash-5f770b1297ea88c999a65710ead199e0a46d8459.tar.gz
dash-5f770b1297ea88c999a65710ead199e0a46d8459.zip
jobs: Only block in waitcmd on first run
This patch ensures that waitcmd never blocks unless there are
outstanding jobs.  This could otherwise trigger a hang if children
were created prior to the shell coming into existence, or if
there are backgrounded children of other kinds (e.g., a here-
document).

Fixes: 6c691b3e5099 ("jobs: Only clear gotsigchld when waiting...")
Reported-by: Michael Biebl <biebl@debian.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'src/funcs/suspend')
0 files changed, 0 insertions, 0 deletions