genode/base-linux/src
Norman Feske 91e6ab2baf Linux: Robustness of socket life-time management
This patch improves the life-time management of socket descriptors and
addresses several corner cases exposed by the 'bomb' test.

The lookup and association of file descriptors with global IDs have been
turned into an atomic operation. Otherwise, multiple threads interacting
with the singleton 'ep_sd_registry' may override each other's
associations.

Closing the socket pair used for the reply channel has been implemented
via the RAII pattern to capture all corner cases, in particular
exceptions.

If blocking operations are interrupted by signals, we throw a
'Blocking_canceled' exception.

We preserve core's socket descriptor at 'PARENT_SOCKET_HANDLE' to avoid
a corner case where the parent capability is going to dup2'ed to the
same handle.

Support for 'Thread_base::join' within core to enable leaving Genode via
Control-C.
2012-11-26 20:58:09 +01:00
..
base Linux: Robustness of socket life-time management 2012-11-26 20:58:09 +01:00
core Linux: Robustness of socket life-time management 2012-11-26 20:58:09 +01:00
platform Add 'Thread_base::join()' 2012-11-19 12:43:34 +01:00
test lx_hybrid: revive missing errno test 2012-10-29 10:08:30 +01:00