Do not set sigmask for thread in standalone service

This commit is contained in:
z3APA3A 2020-11-13 11:01:14 +03:00
parent a29d2ab66b
commit f64cd475af

View File

@ -58,10 +58,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);