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 eb235b3e019c8099e8c542d2451ce121709def47
parent dbad4e7160f4b01ac4041e5f8a593f2691eaadc9
Author: Joris Vink <joris@coders.se>
Date:   Wed, 25 Mar 2015 19:42:24 +0100

shmat() returns (void *)-1 upon error.

Diffstat:
src/worker.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/worker.c b/src/worker.c @@ -91,7 +91,7 @@ kore_worker_init(void) fatal("kore_worker_init(): shmget() %s", errno_s); } - if ((accept_lock = shmat(shm_accept_key, NULL, 0)) == NULL) + if ((accept_lock = shmat(shm_accept_key, NULL, 0)) == (void *)-1) fatal("kore_worker_init(): shmat() %s", errno_s); accept_lock->lock = 0;