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 ff2574899da20514b58e7878c47f1c1e8eb14423
parent cdefb66ed8945e87e3e41bb6a743e377bb3677d1
Author: Joris Vink <joris@coders.se>
Date:   Wed, 20 May 2015 11:36:02 +0200

small style fix.

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

diff --git a/src/worker.c b/src/worker.c @@ -200,8 +200,11 @@ kore_worker_entry(struct kore_worker *kw) } if (skip_chroot == 0) { - if (chroot(chroot_path) == -1) - fatal("cannot chroot(\"%s\"): %s", chroot_path, errno_s); + if (chroot(chroot_path) == -1) { + fatal("cannot chroot(\"%s\"): %s", + chroot_path, errno_s); + } + if (chdir("/") == -1) fatal("cannot chdir(\"/\"): %s", errno_s); }