summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authordjm <djm>2008-02-10 11:23:18 +0000
committerdjm <djm>2008-02-10 11:23:18 +0000
commit6e023c01d08221927ddc6c13ff498a17e34319c7 (patch)
tree3332eee4212c0c982efdc97eebeffa287c3ef1a3 /ssh.c
parentdf2dc41e4b23ac593f5721a86f1812e44d396f70 (diff)
downloadopenssh-6e023c01d08221927ddc6c13ff498a17e34319c7.tar.gz
- djm@cvs.openbsd.org 2008/01/19 20:51:26
[ssh.c] ignore SIGPIPE in multiplex client mode - we can receive this if the server runs out of fds on us midway. Report and patch from gregory_shively AT fanniemae.com
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ssh.c b/ssh.c
index e8906e00..fe2f1adf 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh.c,v 1.308 2007/11/03 02:03:49 deraadt Exp $ */
+/* $OpenBSD: ssh.c,v 1.309 2008/01/19 20:51:26 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1393,6 +1393,8 @@ control_client(const char *path)
if (options.forward_agent)
flags |= SSHMUX_FLAG_AGENT_FWD;
+ signal(SIGPIPE, SIG_IGN);
+
buffer_init(&m);
/* Send our command to server */