id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 2879,[asio] Handling of unix signals,dgoncharov@…,chris_kohlhoff,"This proposal suggests adding to asio the ability to invoke a handler whenever a unix signal arrives. Motivation: 1. The extension lets the user have a unix signal handler of an arbitrary signature. 2. The extension also removes the ""async-signal safe calls"" restriction from a handler of a unix signal. The extension is supposed to be used like this: void on_signal(boost::system::error_code const& error) { if (!error) cout << ""sigint received"" << endl; } int main(int argc, char const* argv[]) { boost::asio::io_service ios; boost::asio::posix::signal_handler sigint(ios); while (true) { ios.reset(); sigint.async_wait(boost::bind(on_signal, _1)); ios.poll(); } } The original proposal on the mail list can be found here. http://lists.boost.org/Archives/boost/2009/03/149890.php Please find the implementation and examples in the attachments. ",Feature Requests,closed,Boost 1.39.0,asio,Boost 1.38.0,Problem,fixed,,samjmill@…