changeset 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 3fb883a6aa81
children 38d2f6b2d1b8
files svr-chansession.c
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
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");
 	}
-	*/
 	
 }