Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions include/boost/process/detail/posix/sigchld_service.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#ifndef BOOST_PROCESS_DETAIL_POSIX_SIGCHLD_SERVICE_HPP_
#define BOOST_PROCESS_DETAIL_POSIX_SIGCHLD_SERVICE_HPP_

#include <boost/asio/dispatch.hpp>
#include <boost/asio/post.hpp>
#include <boost/asio/signal_set.hpp>
#include <boost/asio/strand.hpp>
Expand Down Expand Up @@ -40,7 +39,7 @@ class sigchld_service : public boost::asio::detail::service_base<sigchld_service
SignalHandler, void(boost::system::error_code)> init{handler};

auto & h = init.completion_handler;
boost::asio::dispatch(
boost::asio::post(
_strand,
[this, pid, h]
{
Expand All @@ -57,7 +56,7 @@ class sigchld_service : public boost::asio::detail::service_base<sigchld_service
_signal_set.async_wait(
[this](const boost::system::error_code &ec, int)
{
boost::asio::dispatch(_strand, [this, ec]{this->_handle_signal(ec);});
boost::asio::post(_strand, [this, ec]{this->_handle_signal(ec);});
});
_receivers.emplace_back(pid, h);
}
Expand Down