mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 23:42:32 +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 (;;) {
|
||||
|
||||
/* block until the receiver has received a signal */
|
||||
block_for_signal();
|
||||
|
||||
try {
|
||||
return pending_signal();
|
||||
} catch (Signal_not_pending) { }
|
||||
|
||||
/* block until the receiver has received a signal */
|
||||
block_for_signal();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user