From 36fd1ee86988c00e821bbdceaa32865a69029602 Mon Sep 17 00:00:00 2001 From: everything411 Date: Sat, 19 Oct 2024 15:09:26 +0800 Subject: [PATCH] Wait for the spawned shell child process resolve a zombie process issue. --- src/shellspawn/shellspawn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shellspawn/shellspawn.c b/src/shellspawn/shellspawn.c index 1fbb3d0f1..102b765ab 100644 --- a/src/shellspawn/shellspawn.c +++ b/src/shellspawn/shellspawn.c @@ -113,6 +113,7 @@ void listenForConnections(void) else { close(sock); + reapAll(); } } }