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

*** empty log message ***

Rev: ChangeLog:1.154
Rev: src/command.c:1.35
Rev: src/sexp_conv.c:1.13
Rev: src/tcpforward.c:1.38
parent 01c1b7ff
2000-02-06 Niels Mller <nisse@cuckoo.localdomain>
* src/tcpforward_commands.c (new_tcpip_channel): Use
* src/proxy_session.c (do_proxy_open_channel): Use
* src/lsh-authorize: Tried to remove bash-isms.
* src/client.c (new_session): Use format_channel_open.
* src/channel_commands.h (channel_open_command): Added
local_channel_number argument to NEW_CHANNEL.
* src/channel_commands.c (do_channel_open_command): Call
alloc_channel() and register_channel(), rather than delegating it
to the NEW_CHANNEL method. Set the channel's exception handler
* src/channel.c (use_channel): New function to take a channel in
(register_channel): New argument take_into_use.
(lookup_channel_reserved): New function that returns channels that
are marked as reserved, but not in use.
(do_channel_open_continue): Call register_channel with
(do_channel_open_confirm): Use lookup_channel_reserved(). Call
(do_channel_open_failure): Use lookup_channel_reserved().
(format_channel_open): Renamed from prepare_channel_open. Don't
call alloc_channel() or register_channel().
New three-level classification for the in_use table.
* src/channel.c (exc_finish_channel_handler): Use pointer to
connection rather than to its channel table.
2000-02-05 Niels Mller <nisse@cuckoo.localdomain> 2000-02-05 Niels Mller <nisse@cuckoo.localdomain>
* src/client.c (do_exit_status, do_exit_signal): Use the
connection's exception handler for protocol errors.
* src/channel.c (do_exc_finish_channel_handler): Raise
EXC_FINISH_READ using the connection's exception handler.
(make_exc_finish_channel_handler): Take a connection, rather than
a channel_table, as argument.
* src/io.c, src/io.h: Reorganized, and deleted all subclasses of * src/io.c, src/io.h: Reorganized, and deleted all subclasses of
lsh_fd. lsh_fd.
(io_connect): Take a continuation as argument. (io_connect): Take a continuation as argument.
...@@ -629,9 +629,9 @@ do_catch_simple(struct command_simple *s, ...@@ -629,9 +629,9 @@ do_catch_simple(struct command_simple *s,
static void static void
do_catch_report_apply(struct command *s, do_catch_report_apply(struct command *s,
struct lsh_object *a, struct lsh_object *a,
struct command_continuation *c, struct command_continuation *c,
struct exception_handler *e) struct exception_handler *e)
{ {
CAST(catch_report_apply, self, s); CAST(catch_report_apply, self, s);
...@@ -261,7 +261,7 @@ int main(int argc, char **argv) ...@@ -261,7 +261,7 @@ int main(int argc, char **argv)
struct lsh_fd *in = make_lsh_fd(backend, STDIN_FILENO, e); struct lsh_fd *in = make_lsh_fd(backend, STDIN_FILENO, e);
/* Fixing the exception handler creates a circularity */ /* Fixing the exception handler creates a circularity */
e->parent = make_exc_finish_read_handler(&in->super, e->parent = make_exc_finish_read_handler(in,
&default_exception_handler, &default_exception_handler,
...@@ -446,7 +446,9 @@ do_tcpip_forward_request(struct global_request *s, ...@@ -446,7 +446,9 @@ do_tcpip_forward_request(struct global_request *s,
a, a,
make_tcpip_forward_request_continuation make_tcpip_forward_request_continuation
(connection, forward, c), (connection, forward, c),
/* FIXME: Use a better exception handler */ /* FIXME: Use a better exception handler.
* We should handle EXC_RESOLVE and EXC_LISTEN, and
* report or ignore i/o-errors. */
&default_exception_handler &default_exception_handler
/* make_tcpip_forward_request_raise /* make_tcpip_forward_request_raise
(connection, forward) */ ); (connection, forward) */ );
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