From e428fc505c3a3bf93b221fc0d388c29a3eb306c6 Mon Sep 17 00:00:00 2001 From: Yves Rutschle Date: Thu, 11 Jan 2024 21:24:19 +0100 Subject: [PATCH] prevent children from continuing the parent's work in case of failure --- sslh-fork.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sslh-fork.c b/sslh-fork.c index 1d997e9..139338a 100644 --- a/sslh-fork.c +++ b/sslh-fork.c @@ -224,6 +224,8 @@ void main_loop(struct listen_endpoint listen_sockets[], int num_addr_listen) print_message(msg_config_error, "UDP not (yet?) supported in sslh-fork\n"); else tcp_listener(listen_sockets, num_addr_listen, i); + + exit(0); break; /* We're in the parent, we don't need to do anything */