dash: add upstream fix for child waiting issue.

Fixes #14123.
This commit is contained in:
Leah Neukirchen 2018-05-05 19:25:50 +02:00
parent a99a914d41
commit b5bb1445fb
2 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,16 @@
Subject: Re: Regression in dash 0.5.10 related to subshells
Message-ID: <20180505160243.t5rujv3eifiust5a@gondor.apana.org.au>
--- src/jobs.c
+++ src/jobs.c
@@ -975,8 +975,8 @@ waitforjob(struct job *jp)
int st;
TRACE(("waitforjob(%%%d) called\n", jp ? jobno(jp) : 0));
- while ((jp && jp->state == JOBRUNNING) || gotsigchld)
- dowait(DOWAIT_BLOCK, jp);
+ while (jp ? jp->state == JOBRUNNING : gotsigchld)
+ dowait(jp ? DOWAIT_BLOCK : DOWAIT_NORMAL, jp);
if (!jp)
return exitstatus;
st = getstatus(jp);

View file

@ -1,7 +1,7 @@
# Template file for 'dash'
pkgname=dash
version=0.5.10
revision=1
revision=2
build_style=gnu-configure
hostmakedepends="bison"
register_shell="/bin/sh /bin/dash"