From ad8bd954a18bd4cd8ae5c330d4e11a5d3b4a0e74 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Tue, 23 Jan 2024 14:44:20 -0700 Subject: [PATCH] do not set SIG_IGN now that the parent process is getting the childs exit status --- apps/wolfsshd/wolfsshd.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/wolfsshd/wolfsshd.c b/apps/wolfsshd/wolfsshd.c index ae2947e32..1a7f8341d 100644 --- a/apps/wolfsshd/wolfsshd.c +++ b/apps/wolfsshd/wolfsshd.c @@ -1317,10 +1317,6 @@ static int SHELL_Subsystem(WOLFSSHD_CONNECTION* conn, WOLFSSH* ssh, exit(ret); /* exit child process and close down SSH connection */ } - /* do not wait for status of child process, and signal that the child can - * be reaped to avoid zombie processes when running in the foreground */ - signal(SIGCHLD, SIG_IGN); - if (wolfSSHD_AuthReducePermissionsUser(conn->auth, pPasswd->pw_uid, pPasswd->pw_gid) != WS_SUCCESS) { wolfSSH_Log(WS_LOG_ERROR, "[SSHD] Error setting user ID");