Mercurial > dropbear
diff svr-chansession.c @ 1042:9699b9438ad9
Revert accidental commented out signal handlers
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 24 Feb 2015 22:23:32 +0800 |
parents | 2b4fd440399d |
children | aae71c5f7d5b |
line wrap: on
line diff
--- a/svr-chansession.c Tue Feb 24 22:17:04 2015 +0800 +++ b/svr-chansession.c Tue Feb 24 22:23:32 2015 +0800 @@ -787,11 +787,9 @@ 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 @@ 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"); } - */ }