Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nxssh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Алексей Аляев
nxssh
Commits
3033e7ec
Commit
3033e7ec
authored
Nov 08, 2016
by
Stas Korobeynikov
Committed by
Pavel Vainerman
Oct 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add nx close connection
parent
6bce013b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
clientloop.c
clientloop.c
+15
-2
No files found.
clientloop.c
View file @
3033e7ec
...
...
@@ -1846,8 +1846,15 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id)
exit_status
=
0
;
}
if
(
received_signal
)
fatal
(
"Killed by signal %d."
,
(
int
)
received_signal
);
if
(
received_signal
)
{
/*
* fatal("Killed by signal %d.", (int) received_signal);
*/
nx_close_proxy_connection
();
fatal
(
"NX> 280 Exiting on signal: %d"
,
(
int
)
received_signal
);
}
/*
* In interactive mode (with pseudo tty) display a message indicating
...
...
@@ -1915,6 +1922,12 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id)
if
(
total_time
>
0
)
verbose
(
"Bytes per second: sent %.1f, received %.1f"
,
obytes
/
total_time
,
ibytes
/
total_time
);
/*
* Wait for the NX transport to terminate.
*/
nx_close_proxy_connection
();
/* Return the exit status of the program. */
debug
(
"Exit status %d"
,
exit_status
);
return
exit_status
;
...
...
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