From 8ec69298992c16503d1b5bc816a8a094ecc18dc2 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Mon, 22 Sep 2014 20:04:41 -0400 Subject: [PATCH] Don't loop on waitpid returning 0 --- tid/tids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tid/tids.c b/tid/tids.c index 07d48e7..811fb4b 100644 --- a/tid/tids.c +++ b/tid/tids.c @@ -390,7 +390,7 @@ int tids_start (TIDS_INSTANCE *tids, } /* clean up any processes that have completed */ - while (waitpid(-1, 0, WNOHANG) >= 0); + while (waitpid(-1, 0, WNOHANG) > 0); } return 1; /* should never get here, loops "forever" */ -- 2.1.4