summaryrefslogtreecommitdiff
path: root/serverloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'serverloop.c')
-rw-r--r--serverloop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/serverloop.c b/serverloop.c
index 50e89aee8..8ee93b3b1 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -417,6 +417,7 @@ server_loop(pid_t pid, int fdin_arg, int fdout_arg, int fderr_arg)
417 child_terminated = 0; 417 child_terminated = 0;
418 child_has_selected = 0; 418 child_has_selected = 0;
419 signal(SIGCHLD, sigchld_handler); 419 signal(SIGCHLD, sigchld_handler);
420 signal(SIGPIPE, SIG_IGN);
420 421
421 /* Initialize our global variables. */ 422 /* Initialize our global variables. */
422 fdin = fdin_arg; 423 fdin = fdin_arg;
@@ -650,6 +651,7 @@ server_loop2(void)
650 debug("Entering interactive session for SSH2."); 651 debug("Entering interactive session for SSH2.");
651 652
652 signal(SIGCHLD, sigchld_handler2); 653 signal(SIGCHLD, sigchld_handler2);
654 signal(SIGPIPE, SIG_IGN);
653 child_terminated = 0; 655 child_terminated = 0;
654 connection_in = packet_get_connection_in(); 656 connection_in = packet_get_connection_in();
655 connection_out = packet_get_connection_out(); 657 connection_out = packet_get_connection_out();