commit 9fd30db5985e10feabb7ae6c50909db54cc63655
parent bbae4be6f18c6308e1fbc7aeb25cd9dfd96c6987
Author: Joris Vink <joris@coders.se>
Date: Tue, 7 Sep 2021 22:14:28 +0200
Change timeout for worker startup a bit.
Also give some feedback we are waiting for process startup.
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/worker.c b/src/worker.c
@@ -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) {