diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-05-17 03:21:27 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-05-17 03:21:27 +0000 |
commit | b6147ab9e986c698f2a9a5e099a7ed199333cb94 (patch) | |
tree | e4662bf82eb137c92a6a0024b281e472047430fd /nchan.c | |
parent | c8b3f476765c2f24cb50462e397262028fc28a2e (diff) |
- markus@cvs.openbsd.org 2001/05/16 22:09:21
[channels.c nchan.c]
more select() error fixes (don't set rfd/wfd to -1).
Diffstat (limited to 'nchan.c')
-rw-r--r-- | nchan.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: nchan.c,v 1.24 2001/05/04 23:47:34 markus Exp $"); | 26 | RCSID("$OpenBSD: nchan.c,v 1.25 2001/05/16 22:09:21 markus Exp $"); |
27 | 27 | ||
28 | #include "ssh1.h" | 28 | #include "ssh1.h" |
29 | #include "ssh2.h" | 29 | #include "ssh2.h" |
@@ -484,7 +484,6 @@ chan_shutdown_write(Channel *c) | |||
484 | if (close(c->wfd) < 0) | 484 | if (close(c->wfd) < 0) |
485 | log("channel %d: chan_shutdown_write: close() failed for fd%d: %.100s", | 485 | log("channel %d: chan_shutdown_write: close() failed for fd%d: %.100s", |
486 | c->self, c->wfd, strerror(errno)); | 486 | c->self, c->wfd, strerror(errno)); |
487 | c->wfd = -1; | ||
488 | } | 487 | } |
489 | } | 488 | } |
490 | static void | 489 | static void |
@@ -507,6 +506,5 @@ chan_shutdown_read(Channel *c) | |||
507 | if (close(c->rfd) < 0) | 506 | if (close(c->rfd) < 0) |
508 | log("channel %d: chan_shutdown_read: close() failed for fd%d: %.100s", | 507 | log("channel %d: chan_shutdown_read: close() failed for fd%d: %.100s", |
509 | c->self, c->rfd, strerror(errno)); | 508 | c->self, c->rfd, strerror(errno)); |
510 | c->rfd = -1; | ||
511 | } | 509 | } |
512 | } | 510 | } |