From f9fc2dae0e79015fc83285f9ab174633937ad9b1 Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Wed, 24 Nov 1999 20:21:49 +0000 Subject: it's not an error() if shutdown_write failes in nchan. --- usr.bin/ssh/nchan.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/ssh/nchan.c b/usr.bin/ssh/nchan.c index c7cf51e2c08..68c571939cd 100644 --- a/usr.bin/ssh/nchan.c +++ b/usr.bin/ssh/nchan.c @@ -28,7 +28,7 @@ */ #include "includes.h" -RCSID("$Id: nchan.c,v 1.7 1999/11/24 16:15:25 markus Exp $"); +RCSID("$Id: nchan.c,v 1.8 1999/11/24 20:21:48 markus Exp $"); #include "ssh.h" @@ -202,9 +202,10 @@ chan_send_oclose(Channel *c) static void chan_shutdown_write(Channel *c) { + /* shutdown failure is allowed if write failed already */ debug("channel %d: shutdown_write", c->self); if (shutdown(c->sock, SHUT_WR) < 0) - error("chan_shutdown_write failed for #%d/fd%d: %.100s", + debug("chan_shutdown_write failed for #%d/fd%d: %.100s", c->self, c->sock, strerror(errno)); } static void -- cgit v1.2.3