summaryrefslogtreecommitdiffstats
path: root/nchan.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-05-05 06:09:47 +0200
committerBen Lindstrom <mouring@eviladmin.org>2001-05-05 06:09:47 +0200
commit99c73b377a45d3e008e73cca9073dc006e1cfaae (patch)
treeb2b33909e71916ba176521d28663d90fc8b40fc4 /nchan.c
parent - markus@cvs.openbsd.org 2001/05/04 14:34:34 (diff)
downloadopenssh-99c73b377a45d3e008e73cca9073dc006e1cfaae.tar.xz
openssh-99c73b377a45d3e008e73cca9073dc006e1cfaae.zip
- markus@cvs.openbsd.org 2001/05/04 23:47:34
[channels.c channels.h clientloop.c nchan.c nchan.h serverloop.c ssh.c] move to Channel **channels (instead of Channel *channels), fixes realloc problems. channel_new now returns a Channel *, favour Channel * over channel id. remove old channel_allocate interface.
Diffstat (limited to 'nchan.c')
-rw-r--r--nchan.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/nchan.c b/nchan.c
index 77e4ef486..f4606e07f 100644
--- a/nchan.c
+++ b/nchan.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: nchan.c,v 1.23 2001/02/28 08:54:55 markus Exp $");
+RCSID("$OpenBSD: nchan.c,v 1.24 2001/05/04 23:47:34 markus Exp $");
#include "ssh1.h"
#include "ssh2.h"
@@ -391,9 +391,17 @@ chan_send_close2(Channel *c)
/* shared */
+void
+chan_mark_dead(Channel *c)
+{
+ c->flags |= CHAN_DEAD;
+}
+
int
chan_is_dead(Channel *c)
{
+ if (c->flags & CHAN_DEAD)
+ return 1;
if (c->istate != CHAN_INPUT_CLOSED || c->ostate != CHAN_OUTPUT_CLOSED)
return 0;
if (!compat20) {