2 // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // Official repository: https://github.com/boostorg/beast
10 #ifndef BOOST_BEAST_TEST_SIG_WAIT_HPP
11 #define BOOST_BEAST_TEST_SIG_WAIT_HPP
13 #include <boost/asio.hpp>
19 /// Block until SIGINT or SIGTERM is received.
24 boost::asio::io_context ioc;
25 boost::asio::signal_set signals(
26 ioc, SIGINT, SIGTERM);
28 [&](boost::system::error_code const&, int)