diff options
Diffstat (limited to 'nchan.c')
-rw-r--r-- | nchan.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: nchan.c,v 1.23 2001/02/28 08:54:55 markus Exp $"); | 26 | RCSID("$OpenBSD: nchan.c,v 1.24 2001/05/04 23:47:34 markus Exp $"); |
27 | 27 | ||
28 | #include "ssh1.h" | 28 | #include "ssh1.h" |
29 | #include "ssh2.h" | 29 | #include "ssh2.h" |
@@ -391,9 +391,17 @@ chan_send_close2(Channel *c) | |||
391 | 391 | ||
392 | /* shared */ | 392 | /* shared */ |
393 | 393 | ||
394 | void | ||
395 | chan_mark_dead(Channel *c) | ||
396 | { | ||
397 | c->flags |= CHAN_DEAD; | ||
398 | } | ||
399 | |||
394 | int | 400 | int |
395 | chan_is_dead(Channel *c) | 401 | chan_is_dead(Channel *c) |
396 | { | 402 | { |
403 | if (c->flags & CHAN_DEAD) | ||
404 | return 1; | ||
397 | if (c->istate != CHAN_INPUT_CLOSED || c->ostate != CHAN_OUTPUT_CLOSED) | 405 | if (c->istate != CHAN_INPUT_CLOSED || c->ostate != CHAN_OUTPUT_CLOSED) |
398 | return 0; | 406 | return 0; |
399 | if (!compat20) { | 407 | if (!compat20) { |