Commit 1ed6fa85 authored by Niels Möller's avatar Niels Möller
Browse files

* src/client.h (class client_session): New attribute with the

channel's resources. Needed for the pty support.
* src/client_session.c (do_kill_client_session): Kill associated
resources.
(make_client_session_channel): Initialize resource list.

Rev: src/client_session.c:1.21.2.10
parent bad73c30
...@@ -64,6 +64,7 @@ do_kill_client_session(struct resource *s) ...@@ -64,6 +64,7 @@ do_kill_client_session(struct resource *s)
io_close_fd(self->err.fd); io_close_fd(self->err.fd);
self->err.fd = -1; self->err.fd = -1;
KILL_RESOURCE_LIST(self->resources);
ssh_connection_pending_close(self->super.connection); ssh_connection_pending_close(self->super.connection);
} }
} }
...@@ -265,6 +266,8 @@ make_client_session_channel(int in, int out, int err, ...@@ -265,6 +266,8 @@ make_client_session_channel(int in, int out, int err,
io_register_fd(out, "session stdout"); io_register_fd(out, "session stdout");
io_register_fd(err, "session stderr"); io_register_fd(err, "session stderr");
self->resources = make_resource_list();
object_queue_init(&self->requests); object_queue_init(&self->requests);
self->e = e; self->e = e;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment