summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/session.c b/session.c
index 3ec97d0d1..13fe01870 100644
--- a/session.c
+++ b/session.c
@@ -33,7 +33,7 @@
33 */ 33 */
34 34
35#include "includes.h" 35#include "includes.h"
36RCSID("$OpenBSD: session.c,v 1.66 2001/03/21 21:06:30 markus Exp $"); 36RCSID("$OpenBSD: session.c,v 1.67 2001/03/23 14:28:32 markus Exp $");
37 37
38#include "ssh.h" 38#include "ssh.h"
39#include "ssh1.h" 39#include "ssh1.h"
@@ -1427,6 +1427,10 @@ do_child(Session *s, const char *command)
1427 else 1427 else
1428 cp = shell; 1428 cp = shell;
1429 } 1429 }
1430
1431 /* restore SIGPIPE for child */
1432 signal(SIGPIPE, SIG_DFL);
1433
1430 /* 1434 /*
1431 * If we have no command, execute the shell. In this case, the shell 1435 * If we have no command, execute the shell. In this case, the shell
1432 * name to be passed in argv[0] is preceded by '-' to indicate that 1436 * name to be passed in argv[0] is preceded by '-' to indicate that