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

Use proper exit code.

Rev: src/lsh.c:1.22
parent 7747254c
......@@ -95,6 +95,8 @@ int main(int argc, char **argv)
char *user = NULL;
char *port = "ssh";
int option;
int lsh_exit_code;
struct sockaddr_in remote;
......@@ -201,7 +203,7 @@ int main(int argc, char **argv)
make_client_startup(io_read(&backend, in, NULL, NULL),
io_write(&backend, out, BLOCK_SIZE, NULL),
io_write(&backend, err, BLOCK_SIZE, NULL),
ATOM_SHELL, ssh_format("")));
ATOM_SHELL, ssh_format(""), &lsh_exit_code));
kexinit_handler = make_kexinit_handler
......@@ -223,10 +225,13 @@ int main(int argc, char **argv)
/* Exit code if no session is established */
lsh_exit_code = 17;
return 0;
return lsh_exit_code;
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