commit df22b273574ae14e3e636050a44dd274750aa747
parent 6ead0be8059114acf75c1a806f41f953aa456061
Author: Francesco Saccone <francesco@francescosaccone.com>
Date: Mon, 31 Mar 2025 14:09:01 +0200
feat: in the termination process, close the server socket
Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/hermes.c b/hermes.c
@@ -125,6 +125,9 @@ main(int argc, char *argv[]) {
/* wait for the child process to exit */
waitpid(pid, &child_status, 0);
+
+ close_socket(server_socket_fd);
+
break;
}