Revert accidental commented out signal handlers

This commit is contained in:
Matt Johnston 2015-02-24 22:23:32 +08:00
parent 8008b595d3
commit 9adfff5c1a

View File

@ -787,11 +787,9 @@ static int ptycommand(struct Channel *channel, struct ChanSess *chansess) {
TRACE(("back to normal sigchld"))
/* Revert to normal sigchld handling */
/*
if (signal(SIGCHLD, SIG_DFL) == SIG_ERR) {
dropbear_exit("signal() error");
}
*/
/* redirect stdin/stdout/stderr */
close(chansess->master);
@ -1007,11 +1005,9 @@ void svr_chansessinitialise() {
sa_chld.sa_handler = sesssigchild_handler;
sa_chld.sa_flags = SA_NOCLDSTOP;
sigemptyset(&sa_chld.sa_mask);
/*
if (sigaction(SIGCHLD, &sa_chld, NULL) < 0) {
dropbear_exit("signal() error");
}
*/
}