Merge branch 'tr-peering' of moonshot.suchdamage.org:/srv/git/trust_router into tr...
authorMargaret Wasserman <mrw@painless-security.com>
Tue, 23 Sep 2014 01:36:16 +0000 (21:36 -0400)
committerMargaret Wasserman <mrw@painless-security.com>
Tue, 23 Sep 2014 01:36:16 +0000 (21:36 -0400)
tid/tids.c

index 07d48e7..811fb4b 100644 (file)
@@ -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" */