Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
6d220a45
Commit
6d220a45
authored
Nov 15, 1998
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use proper exit code.
Rev: src/lsh.c:1.22
parent
7747254c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/lsh.c
src/lsh.c
+7
-2
No files found.
src/lsh.c
View file @
6d220a45
...
...
@@ -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
(
CONNECTION_CLIENT
,
...
...
@@ -223,10 +225,13 @@ int main(int argc, char **argv)
}
lsh_string_free
(
random_seed
);
/* Exit code if no session is established */
lsh_exit_code
=
17
;
io_run
(
&
backend
);
return
0
;
return
lsh_exit_code
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment