void installSignal()
{
+#ifndef __WIN32__
// register signal handler
struct sigaction sa;
sigemptyset( &sa.sa_mask );
{
std::cerr << "could not install SIGINT handler" << std::endl;
}
+#endif // __WIN32__
}
/// ***** Private Methods *****
// signal handler function
void sighandler( int sig )
{
+#ifndef __WIN32__
switch(sig)
{
case SIGINT:
// normally an abort is better ... but this is just SIGINT
exit(sig);
+#endif // __WIN32__
}