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 d6f0b8f8fe8eabf5f0ec16caf547113b9911d8a5
parent 65a28e3db389d8b872c4cba9e6703cf0e8142cb0
Author: Joris Vink <joris@coders.se>
Date:   Fri,  1 Aug 2014 09:05:14 +0200

Start kore from inside the rootdir when doing orbit run

Diffstat:
src/orbit.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/orbit.c b/src/orbit.c @@ -237,7 +237,11 @@ static void orbit_run(int argc, char **argv) { orbit_build(argc, argv); - orbit_spawn_proc(orbit_run_kore, NULL); + + if (chdir(rootdir) == -1) + fatal("couldn't change directory to %s", rootdir); + + orbit_run_kore(NULL); } static void @@ -444,7 +448,7 @@ orbit_run_kore(void *arg) { char *args[4], *cpath; - orbit_vasprintf(&cpath, "%s/conf/%s.conf", rootdir, appl); + orbit_vasprintf(&cpath, "conf/%s.conf", appl); args[0] = "kore"; args[1] = "-fnc";