Skip to content
Snippets Groups Projects
Commit 9adfff5c authored by Matt Johnston's avatar Matt Johnston
Browse files

Revert accidental commented out signal handlers

parent 8008b595
Branches
Tags
No related merge requests found
......@@ -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");
}
*/
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment