do not set SIG_IGN now that the parent process is getting the childs exit status

pull/614/head
JacobBarthelmeh 2024-01-23 14:44:20 -07:00
parent 39b6e26c7e
commit ad8bd954a1
1 changed files with 0 additions and 4 deletions

View File

@ -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");