mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 08:21:08 +00:00
Signal_receiver::wait_for_signal(): check for pending signal before blocking
Fixes #2267
This commit is contained in:
parent
0f6800b20f
commit
a1b4e905ab
@ -120,12 +120,12 @@ Signal Signal_receiver::wait_for_signal()
|
|||||||
{
|
{
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
|
||||||
/* block until the receiver has received a signal */
|
|
||||||
block_for_signal();
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return pending_signal();
|
return pending_signal();
|
||||||
} catch (Signal_not_pending) { }
|
} catch (Signal_not_pending) { }
|
||||||
|
|
||||||
|
/* block until the receiver has received a signal */
|
||||||
|
block_for_signal();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user