Browse Source

Do not set sigmask for thread in standalone service

z3APA3A 5 years ago
parent
commit
f64cd475af
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/proxymain.c

+ 2 - 0
src/proxymain.c

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