mmm_donut: If tasks die while munching, die immediately

Recently I noticed that the OOM killer sometimes kills all of our
children while in the munching stage but before memory fills up. That
leaves the parent process waiting in a loop. Check for death of the
children to fix that.

BUG=None
TEST=mmm_donut.py on kukui-kodama after 1000 in min_ttl_ms

Change-Id: Ib0b5fab1414c21b50cece7e7b90c1cb4790aff3e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/microbenchmarks/+/4482047
Reviewed-by: Vovo Yang <vovoy@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Commit-Queue: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Brian Geffon <bgeffon@chromium.org>
1 file changed