From d2ba110a8cc15ab4b967296cc02715f9c6e3cf21 Mon Sep 17 00:00:00 2001 From: Enrique Date: Mon, 7 Apr 2025 22:52:25 +0200 Subject: fixed bug where not all of the ack was compared in the ipc module --- src/worker.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/worker.c') diff --git a/src/worker.c b/src/worker.c index 51ff976..c6384d0 100755 --- a/src/worker.c +++ b/src/worker.c @@ -14,6 +14,7 @@ str certfile; str keyfile; +// make int for errors? void handle_message(ipc_msg im){ switch(im.type){ case NONE: break; @@ -35,10 +36,10 @@ void handle_message(ipc_msg im){ keyfile = dup_str(im.msg); break; case RESTART: - char *args[] = {"./worker.exe", listener.saddr.ptr, NULL}; + char *args[] = {"./worker.exe", listener->saddr.ptr, NULL}; execv("./worker.exe", args); log_error("Cannot restart worker: %s", strerror(errno)); - return 1; + return; break; case RELOAD: // re-reads config -- cgit v1.2.3