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 970356a3e91fe6e4716e231ac2fcfce295339d48
parent 6e6d2f005dd1682ebf7343c2e84e2cc8dac7eb7f
Author: Joris Vink <joris@coders.se>
Date:   Wed, 22 Feb 2017 20:38:07 +0100

always write the pidfile even in foreground

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

diff --git a/src/kore.c b/src/kore.c @@ -226,9 +226,7 @@ main(int argc, char *argv[]) kore_log(LOG_NOTICE, "server shutting down"); kore_worker_shutdown(); - - if (!foreground) - unlink(kore_pidfile); + unlink(kore_pidfile); kore_listener_cleanup(); kore_log(LOG_NOTICE, "goodbye"); @@ -417,8 +415,7 @@ kore_server_start(void) fatal("cannot daemon(): %s", errno_s); kore_pid = getpid(); - if (!foreground) - kore_write_kore_pid(); + kore_write_kore_pid(); kore_log(LOG_NOTICE, "%s is starting up", __progname); #if defined(KORE_USE_PGSQL)