diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-03-23 14:28:33 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-03-23 14:28:33 +0000 |
commit | 30dfe7a11def229df5eb56aa266db3617e2f7834 (patch) | |
tree | 7136251a3b7760fc3a62c445250e6f1a42594786 /usr.bin/ssh/session.c | |
parent | dfcecc94343791147d7c74ad65451f73a7db9475 (diff) |
ignore SIGPIPE, restore in child, fixes x11-fwd crashes; with djm@
Diffstat (limited to 'usr.bin/ssh/session.c')
-rw-r--r-- | usr.bin/ssh/session.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c index 27d3fa9e279..5057dcb71be 100644 --- a/usr.bin/ssh/session.c +++ b/usr.bin/ssh/session.c @@ -33,7 +33,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: session.c,v 1.66 2001/03/21 21:06:30 markus Exp $"); +RCSID("$OpenBSD: session.c,v 1.67 2001/03/23 14:28:32 markus Exp $"); #include "ssh.h" #include "ssh1.h" @@ -1094,6 +1094,10 @@ do_child(Session *s, const char *command) else cp = shell; } + + /* restore SIGPIPE for child */ + signal(SIGPIPE, SIG_DFL); + /* * If we have no command, execute the shell. In this case, the shell * name to be passed in argv[0] is preceded by '-' to indicate that |