mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 05:17:28 +00:00
Revert accidental commented out signal handlers
This commit is contained in:
parent
8008b595d3
commit
9adfff5c1a
@ -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");
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user