Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85746 - trunk/boost/asio/detail/impl
From: chris_at_[hidden]
Date: 2013-09-17 17:43:29


Author: chris_kohlhoff
Date: 2013-09-17 17:43:29 EDT (Tue, 17 Sep 2013)
New Revision: 85746
URL: http://svn.boost.org/trac/boost/changeset/85746

Log:
Ensure signal number is correctly passed to the completion handler when
starting an async_wait on a signal that is already raised.

Text files modified:
   trunk/boost/asio/detail/impl/signal_set_service.ipp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/boost/asio/detail/impl/signal_set_service.ipp
==============================================================================
--- trunk/boost/asio/detail/impl/signal_set_service.ipp Tue Sep 17 17:42:48 2013 (r85745)
+++ trunk/boost/asio/detail/impl/signal_set_service.ipp 2013-09-17 17:43:29 EDT (Tue, 17 Sep 2013) (r85746)
@@ -589,6 +589,7 @@
     if (reg->undelivered_ > 0)
     {
       --reg->undelivered_;
+ op->signal_number_ = reg->signal_number_;
       io_service_.post_deferred_completion(op);
       return;
     }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk