mirror of https://github.com/wolfSSL/wolfssh.git
do not set SIG_IGN now that the parent process is getting the childs exit status
parent
39b6e26c7e
commit
ad8bd954a1
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue