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

* src/channel_commands.c (do_channel_global_command): New

function.

Rev: src/channel_commands.c:1.5
parent 9e6e4c56
......@@ -68,4 +68,19 @@ int do_channel_request_command(struct command *s,
return A_WRITE(channel->write, request);
}
int do_channel_global_command(struct command *s,
struct lsh_object *x,
struct command_continuation *c)
{
CAST_SUBTYPE(global_request_command, self, s);
CAST_SUBTYPE(ssh_connection, connection, x);
struct lsh_string *request
= FORMAT_GLOBAL_REQUEST(self, connection, &c);
if (c)
object_queue_add_tail(&connection->channels->pending_global_requests, &c->super);
return A_WRITE(connection->write, request);
}
Markdown is supported
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