diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -33,7 +33,7 @@ | |||
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include "includes.h" | 35 | #include "includes.h" |
36 | RCSID("$OpenBSD: session.c,v 1.66 2001/03/21 21:06:30 markus Exp $"); | 36 | RCSID("$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 |