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 5d09214591e42247750122d072a81f62521952e3
parent a9537bc6ec97fe82551e3a2c7de41c3200248630
Author: Joris Vink <joris@coders.se>
Date:   Wed, 25 Jan 2017 22:21:40 +0100

only rebuild with "kore build" when we can.

Diffstat:
src/cli.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/cli.c b/src/cli.c @@ -223,6 +223,9 @@ static const char *config_data = "\n" "bind\t\t127.0.0.1 8888\n" "load\t\t./%s.so\n" +#if defined(KORE_USE_PYTHON) + "\n#python_import src/handler.py\n" +#endif #if !defined(KORE_NO_TLS) "tls_dhparam\tdh2048.pem\n" #endif @@ -580,8 +583,9 @@ cli_build(int argc, char **argv) (void)cli_vasprintf(&sofile, "%s.so", appl); } - if (!cli_file_exists(sofile)) + if (!cli_file_exists(sofile) && source_files_count > 0) requires_relink++; + free(sofile); if (requires_relink) {