mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-29 21:54:27 +00:00
parent
f236e99b5c
commit
118e8ee6e1
@ -378,6 +378,12 @@ void Ssh::Server::detach_terminal(Ssh::Terminal &conn)
|
|||||||
auto invalidate_terminal = [&] (Session &sess) {
|
auto invalidate_terminal = [&] (Session &sess) {
|
||||||
if (sess.terminal != &conn) { return; }
|
if (sess.terminal != &conn) { return; }
|
||||||
sess.terminal_detached = true;
|
sess.terminal_detached = true;
|
||||||
|
|
||||||
|
/* flush before destroying the terminal */
|
||||||
|
Libc::with_libc([&] {
|
||||||
|
try { sess.terminal->send(sess.channel); }
|
||||||
|
catch (...) { }
|
||||||
|
});
|
||||||
};
|
};
|
||||||
_sessions.for_each(invalidate_terminal);
|
_sessions.for_each(invalidate_terminal);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user