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:
Christopher Kohlhoff 2013-08-07 09:49:18 +10:00
parent e151c85349
commit 16f1e60c54

View File

@ -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;
}