Commit f8e307b3 authored by Jordan Sissel's avatar Jordan Sissel

- exit if all the harvesters have died

parent cb278a89
......@@ -60,9 +60,10 @@ int main(int argc, char **argv) {
emitter(&config);
/* Wait for the harvesters to die */
//for (i = 0; i < argc; i++) {
//pthread_join(harvesters[i], NULL);
//}
for (i = 0; i < argc; i++) {
pthread_join(harvesters[i], NULL);
}
exit(0);
return 0;
} /* main */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment