1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #ifndef BOOST_ASIO_DETAIL_SIGNAL_INIT_HPP
- #define BOOST_ASIO_DETAIL_SIGNAL_INIT_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif
- #include <boost/asio/detail/push_options.hpp>
- #include <boost/asio/detail/push_options.hpp>
- #include <boost/config.hpp>
- #include <boost/asio/detail/pop_options.hpp>
- #if !defined(BOOST_WINDOWS) && !defined(__CYGWIN__)
- #include <boost/asio/detail/push_options.hpp>
- #include <csignal>
- #include <boost/asio/detail/pop_options.hpp>
- namespace boost {
- namespace asio {
- namespace detail {
- template <int Signal = SIGPIPE>
- class signal_init
- {
- public:
-
- signal_init()
- {
- std::signal(Signal, SIG_IGN);
- }
- };
- }
- }
- }
- #endif
- #include <boost/asio/detail/pop_options.hpp>
- #endif
|