frontend_net: fix compilation on Windows (SIGUSR1 does not exist)
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 17 Mar 2014 11:28:59 +0000 (12:28 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 17 Mar 2014 11:28:59 +0000 (12:28 +0100)
src/filter_frontend_net.cpp

index 9313411..6c70880 100644 (file)
@@ -604,6 +604,7 @@ void yf::FrontendNet::process(mp::Package &package) const
             yaz_log(YLOG_LOG, "metaproxy received SIGTERM");
             break; /* stop right away */
         }
+#ifndef WIN32
         if (m_p->m_stop_signo == SIGUSR1)
         {    /* just stop listeners and cont till all sessions are done*/
             yaz_log(YLOG_LOG, "metaproxy received SIGUSR1");
@@ -616,6 +617,7 @@ void yf::FrontendNet::process(mp::Package &package) const
                 yaz_daemon_stop();
             }
         }
+#endif
         int no = m_p->mySocketManager.getNumberOfObservers();
         if (no <= 1)
             break;