diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 1999-11-24 20:21:49 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 1999-11-24 20:21:49 +0000 |
commit | f9fc2dae0e79015fc83285f9ab174633937ad9b1 (patch) | |
tree | d2b41f71c0bf28cb4d4ecdb89ad51b54abae70cf /usr.bin/ssh | |
parent | 4ae163392b36468ca86369223f7a9f1416997029 (diff) |
it's not an error() if shutdown_write failes in nchan.
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/nchan.c | 5 |
1 files 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 |