2 // Copyright (c) 2013-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)
8 #ifndef BEAST_TEST_SIG_WAIT_HPP
9 #define BEAST_TEST_SIG_WAIT_HPP
11 #include <boost/asio.hpp>
16 /// Block until SIGINT or SIGTERM is received.
21 boost::asio::io_service ios;
22 boost::asio::signal_set signals(
23 ios, SIGINT, SIGTERM);
25 [&](boost::system::error_code const&, int)