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 d10ee4438ddd1d5157442d2e74818d261b2c99a1
parent 9227347b90a27dac0f52248d5ad55e7d67a34c6c
Author: Joris Vink <joris@coders.se>
Date:   Tue,  8 Dec 2020 11:33:26 +0100

Duplicate __progname for the call to openlog().

Kore will mangle the argv[] array for setting process names in
a more friendly way but that could cause syslog to spew mangled
data as the ident.

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

diff --git a/src/utils.c b/src/utils.c @@ -84,7 +84,7 @@ kore_log_init(void) { #if defined(KORE_SINGLE_BINARY) extern const char *__progname; - const char *name = __progname; + const char *name = kore_strdup(__progname); #else const char *name = "kore"; #endif