ssh_terminal: destroy libc fd within user context

Fixes #3840
This commit is contained in:
Alexander Boettcher 2020-07-30 17:24:53 +02:00 committed by Norman Feske
parent bed531b604
commit ce1d0464b8

View File

@ -384,7 +384,10 @@ void Ssh::Server::detach_terminal(Ssh::Terminal &conn)
};
_sessions.for_each(invalidate_terminal);
_cleanup_sessions();
Genode::destroy(&_heap, p);
Libc::with_libc([&] () {
Genode::destroy(&_heap, p);
});
}