Do not sigmask main thread for standalone services

This commit is contained in:
z3APA3A 2020-10-15 16:00:43 +03:00
parent 5448329c8a
commit 22555b58ec

View File

@ -286,11 +286,6 @@ int MODULEMAINFUNC (int argc, char** argv){
srv.next = conf.services;
conf.services = conf.services->prev = &srv;
}
#else
srv.needuser = 0;
pthread_mutex_init(&log_mutex, NULL);
#endif
#ifndef _WIN32
{
sigset_t mask;
@ -298,6 +293,10 @@ int MODULEMAINFUNC (int argc, char** argv){
pthread_sigmask(SIG_SETMASK, &mask, NULL);
}
#endif
#else
srv.needuser = 0;
pthread_mutex_init(&log_mutex, NULL);
#endif
for (i=1; i<argc; i++) {
if(*argv[i]=='-') {