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