Fixposition SDK 0.0.0-heads/main-0-g90a51ff
Collection of c++ libraries and apps for use with Fixposition products
|
Helper to catch SIGPIPE. More...
#include <app.hpp>
Public Member Functions | |
SigPipeHelper (const bool warn=false) | |
Constructor. | |
~SigPipeHelper () | |
Destructor. | |
bool | Raised () |
Check if signal was raised. | |
Helper to catch SIGPIPE.
On construction this installs a handler for SIGPIE. On destruction it sets the handler back to its previous state. Note that signal handlers are global and therefore you can only use one SigPipeHelper in a app.
fpsdk::common::app::SigPipeHelper::SigPipeHelper | ( | const bool | warn = false | ) |
bool fpsdk::common::app::SigPipeHelper::Raised | ( | ) |
Check if signal was raised.