Boost::ASIO, Signal handlers

15 Oct
2009
15 Oct
'09
5:43 p.m.
I'm using the ASIO component of boost 1.39.0, and noticed that it uses std::signal() to ignore SIGPIPE by default. Can you confirm that this is indeed the case? How do I prevent this behavior? (and therefore allow for my own signal handler) I was thinking to simply call std::signal() on my own, after the construction of io_service. Will that work, and is there a better way? Thank you, Dan Eaton

15 Oct
15 Oct
7:32 p.m.
On Thu, Oct 15, 2009 at 11:43 AM, Dan Eaton
I was thinking to simply call std::signal() on my own, after the construction of io_service. Will that work, and is there a better way?
I'm assuming that you're going to implement a handler for SIGPIPE, and out of curiosity, what will your handler will do? Jon
5610
Age (days ago)
5610
Last active (days ago)
1 comments
2 participants
participants (2)
-
Dan Eaton
-
Jonathan Franklin