Change timeout for worker startup a bit.

Also give some feedback we are waiting for process startup.
This commit is contained in:
Joris Vink 2021-09-07 22:14:28 +02:00
parent bbae4be6f1
commit 9fd30db598

View File

@ -146,6 +146,8 @@ kore_worker_init(void)
kw->lb.offset = 0;
}
kore_log(LOG_INFO, "starting worker processes");
/* Now start all the workers. */
id = 1;
cpu = 1;
@ -172,6 +174,8 @@ kore_worker_init(void)
return (KORE_RESULT_ERROR);
}
kore_log(LOG_INFO, "all worker processes started");
return (KORE_RESULT_OK);
}
@ -219,10 +223,10 @@ kore_worker_spawn(u_int16_t idx, u_int16_t id, u_int16_t cpu)
kore_worker_entry(kw);
exit(1);
} else {
for (cnt = 0; cnt < 25; cnt++) {
for (cnt = 0; cnt < 50; cnt++) {
if (kw->ready == 1)
break;
usleep(10000);
usleep(100000);
}
if (kw->ready == 0) {