X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=tid%2Ftids.c;h=d94fff298c773339f5272fb116a854986d813c96;hb=576f38186b1f2d1f217539e9c076963956bd3de4;hp=5dce1610d3fc98e14e4253744dbc12f6f5c040bc;hpb=5ffc860dceb6b4a8a663439809f92398e3039327;p=trust_router.git diff --git a/tid/tids.c b/tid/tids.c index 5dce161..d94fff2 100644 --- a/tid/tids.c +++ b/tid/tids.c @@ -387,9 +387,12 @@ int tids_start (TIDS_INSTANCE *tids, } else { close(conn); } + + /* clean up any processes that have completed */ + while (waitpid(-1, 0, WNOHANG) >= 0); } - return 1; /* should never get here */ + return 1; /* should never get here, loops "forever" */ } void tids_destroy (TIDS_INSTANCE *tids)