mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
Construct Terminal_session within with_libc
The "pipe" procedure can only be safely called within with_libc. Fix #3408
This commit is contained in:
parent
eaed28f68d
commit
12127a7bd2
@ -1513,7 +1513,7 @@ class Terminal::Root_component : public Genode::Root_component<Session_component
|
||||
});
|
||||
|
||||
try {
|
||||
_server.attach_terminal(*s);
|
||||
Libc::with_libc([&] () { _server.attach_terminal(*s); });
|
||||
return s;
|
||||
} catch (...) {
|
||||
Genode::destroy(md_alloc(), s);
|
||||
|
Loading…
x
Reference in New Issue
Block a user