Sfoglia il codice sorgente

Do not set sigmask for thread in standalone service

z3APA3A 5 anni fa
parent
commit
140f4f9f97
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/proxymain.c

+ 2 - 0
src/proxymain.c

@@ -61,10 +61,12 @@ void * threadfunc (void *p) {
  }
  }
  else {
  else {
 
 
+#ifndef WITHMAIN
 #ifndef _WIN32
 #ifndef _WIN32
 	sigset_t mask;
 	sigset_t mask;
 	sigfillset(&mask);
 	sigfillset(&mask);
 	if(param->srv->service != S_UDPPM)pthread_sigmask(SIG_SETMASK, &mask, NULL);
 	if(param->srv->service != S_UDPPM)pthread_sigmask(SIG_SETMASK, &mask, NULL);
+#endif
 #endif
 #endif
 
 
 	((struct clientparam *) p)->srv->pf((struct clientparam *)p);
 	((struct clientparam *) p)->srv->pf((struct clientparam *)p);