Skip to content

Commit f42f522

Browse files
author
w30023233
committed
add a delay to avoid test case failures caused by slow sigchild signal handling
1 parent 0f6866b commit f42f522

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cmd/ksh93/tests/sigchld.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ then
7171
fi
7272
done
7373
wait
74+
integer tries=0, maxtries=10
75+
while ((running > 0 && tries < maxtries))
76+
do
77+
sleep 0.1
78+
((tries++))
79+
done
7480
print running=$running maxrunning=$maxrunning
7581
')
7682
exp='running=0 maxrunning='$jobmax

0 commit comments

Comments
 (0)