kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 2ee72657e1fb484ff09717aa67a76a020bed2c1b
parent aaf00e92f8b4ac0171c5252341fbcffab962165e
Author: Joris Vink <joris@coders.se>
Date:   Mon, 19 Jan 2015 15:26:53 +0100

Brackets would be great here.

Diffstat:
src/worker.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/worker.c b/src/worker.c @@ -103,8 +103,10 @@ kore_worker_init(void) kore_debug("kore_worker_init(): system has %d cpu's", cpu_count); kore_debug("kore_worker_init(): starting %d workers", worker_count); - if (worker_count > cpu_count) + + if (worker_count > cpu_count) { kore_debug("kore_worker_init(): more workers then cpu's"); + } cpu = 0; for (i = 0; i < worker_count; i++) { @@ -171,8 +173,9 @@ kore_worker_dispatch_signal(int sig) for (id = 0; id < worker_count; id++) { kw = WORKER(id); - if (kill(kw->pid, sig) == -1) + if (kill(kw->pid, sig) == -1) { kore_debug("kill(%d, %d): %s", kw->pid, sig, errno_s); + } } }