mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 04:29:02 -04:00
Change timeout for worker startup a bit.
Also give some feedback we are waiting for process startup.
This commit is contained in:
parent
bbae4be6f1
commit
9fd30db598
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user