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

* src/lsh.c (do_lsh_default_handler): Handle EXC_CHANNEL_OPEN.

Rev: src/lsh.c:1.96
parent 25d060bd
...@@ -994,6 +994,12 @@ do_lsh_default_handler(struct exception_handler *s, ...@@ -994,6 +994,12 @@ do_lsh_default_handler(struct exception_handler *s,
case EXC_SEXP_SYNTAX: case EXC_SEXP_SYNTAX:
case EXC_SPKI_TYPE: case EXC_SPKI_TYPE:
case EXC_CHANNEL_REQUEST: case EXC_CHANNEL_REQUEST:
/* FIXME: There's no handler specifically for CHANNEL_OPEN
* failures for locally forwarded ports. That means that if a
* locally forwarded connection failes, lsh will exit (at some
* later time) with a non-zero exit status. */
case EXC_CHANNEL_OPEN:
werror("lsh: %z\n", e->msg); werror("lsh: %z\n", e->msg);
*self->status = EXIT_FAILURE; *self->status = EXIT_FAILURE;
break; break;
......
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