pthread: catch time out exception

This commit is contained in:
Alexander Boettcher 2014-01-16 14:15:13 +01:00 committed by Christian Helmuth
parent a11a17147f
commit fcd76d10dd
1 changed files with 3 additions and 0 deletions

View File

@ -510,6 +510,9 @@ extern "C" {
c->signal_sem.down(timeout);
} catch (Timeout_exception) {
result = ETIMEDOUT;
} catch (Genode::Nonblocking_exception) {
errno = ETIMEDOUT;
result = ETIMEDOUT;
}
}