Permalink
Browse files

Disable SignalHandler::AddHandler for windows

  • Loading branch information...
Beirdo committed Jun 20, 2012
1 parent 4afc54a commit f32d6cb863d6023dffbbbc542674f53c53d0efe4
Showing with 2 additions and 0 deletions.
  1. +2 −0 mythtv/libs/libmythbase/signalhandling.cpp
@@ -115,6 +115,7 @@ SignalHandler::~SignalHandler()
void SignalHandler::AddHandler(int signum, void (*handler)(void))
{
+#ifndef _WIN32
struct sigaction sa;
sa.sa_handler = SignalHandler::signalHandler;
sigemptyset(&sa.sa_mask);
@@ -129,6 +130,7 @@ void SignalHandler::AddHandler(int signum, void (*handler)(void))
LOG(VB_GENERAL, LOG_INFO, QString("Setup %1 handler").arg(signame));
free((void *)signame);
+#endif
}
void SignalHandler::signalHandler(int signum)

0 comments on commit f32d6cb

Please sign in to comment.