Browse Source

Ping main on looking for the generator response in the stratifier to know if we've died before ever starting

master
Con Kolivas 11 years ago
parent
commit
0623410889
  1. 5
      src/stratifier.c

5
src/stratifier.c

@ -2088,6 +2088,10 @@ int stratifier(proc_instance_t *pi)
/* Wait for the generator to have something for us */
do {
if (!ping_main(ckp)) {
ret = 1;
goto out;
}
buf = send_recv_proc(ckp->generator, "ping");
} while (!buf);
dealloc(buf);
@ -2114,5 +2118,6 @@ int stratifier(proc_instance_t *pi)
load_users(ckp);
ret = stratum_loop(ckp, pi);
out:
return process_exit(ckp, pi, ret);
}

Loading…
Cancel
Save