Commit aa7ce0e2 authored by Magnus Holmgren's avatar Magnus Holmgren Committed by Niels Möller

In lsh's default exception handler, call exit on EXC_IO_CONNECT.

parent b19782e4
2013-04-19 Magnus Holmgren <holmgren@debian.org>
* src/lsh.c (do_lsh_default_handler): Call exit for
EXC_IO_CONNECT, to terminate properly on connection failure.
* src/io.c (io_bind_sockaddr): Set the IPV6_V6ONLY socket option
on AF_INET6 sockets.
......
......@@ -959,6 +959,8 @@ do_lsh_default_handler(struct exception_handler *s,
*self->status = EXIT_FAILURE;
werror("%z, (errno = %i)\n", e->msg, exc->error);
if (e->type == EXC_IO_CONNECT)
exit(*self->status);
}
else
switch(e->type)
......
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