X-Git-Url: http://git.tuebingen.mpg.de/dss.git/log?a=blobdiff_plain;f=dss.c;h=e9bd56a5e883f3f9aa2ee0ef4bf463dce9f2c7ba;hb=96c620fcf383faffb16c89c2ddd9b0857de6dfbb;hp=3e626ab0113b1890277da115ea6c735dbdb690d7;hpb=3e8d431fb78e95c0d595b6e7e37ff248c0fa4edd;p=dss.git diff --git a/dss.c b/dss.c index 3e626ab..e9bd56a 100644 --- a/dss.c +++ b/dss.c @@ -1565,6 +1565,8 @@ static int com_run(void) ret = -E_BUG; kill_children(); exit_hook(ret); + while (wait(NULL) >= 0 || errno != ECHILD) + ; /* still have children to wait for */ return ret; } EXPORT_CMD_HANDLER(run);