Skip to content

Commit

Permalink
do not set SIG_IGN now that the parent process is getting the childs …
Browse files Browse the repository at this point in the history
…exit status
  • Loading branch information
JacobBarthelmeh committed Jan 23, 2024
1 parent 39b6e26 commit ad8bd95
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apps/wolfsshd/wolfsshd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit ad8bd95

Please sign in to comment.