Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost::ASIO, Signal handlers
From: Jonathan Franklin (franklin.jonathan_at_[hidden])
Date: 2009-10-15 17:04:06


On Thu, Oct 15, 2009 at 2:54 PM, Dan Eaton <daniel.eaton_at_[hidden]> wrote:
> Nothing, other than to log that the signal was received!

You should consider ignoring SIGPIPE, letting the IO operation fail,
checking errno for EPIPE, and logging the event then (or doing
whatever the asio equivalent to this is). This is way safer than
trying to log something from a signal handler.

Jon


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net