Ensure signal number is correctly passed to the completion handler when
starting an async_wait on a signal that is already raised.
This commit is contained in:
parent
e151c85349
commit
16f1e60c54
@ -588,6 +588,7 @@ void signal_set_service::start_wait_op(
|
||||
if (reg->undelivered_ > 0)
|
||||
{
|
||||
--reg->undelivered_;
|
||||
op->signal_number_ = reg->signal_number_;
|
||||
io_service_.post_deferred_completion(op);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user