mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 18:45:40 +08:00
Do not sigmask main thread for standalone services
This commit is contained in:
parent
5448329c8a
commit
22555b58ec
@ -286,11 +286,6 @@ int MODULEMAINFUNC (int argc, char** argv){
|
|||||||
srv.next = conf.services;
|
srv.next = conf.services;
|
||||||
conf.services = conf.services->prev = &srv;
|
conf.services = conf.services->prev = &srv;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
srv.needuser = 0;
|
|
||||||
pthread_mutex_init(&log_mutex, NULL);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
{
|
{
|
||||||
sigset_t mask;
|
sigset_t mask;
|
||||||
@ -298,6 +293,10 @@ int MODULEMAINFUNC (int argc, char** argv){
|
|||||||
pthread_sigmask(SIG_SETMASK, &mask, NULL);
|
pthread_sigmask(SIG_SETMASK, &mask, NULL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
srv.needuser = 0;
|
||||||
|
pthread_mutex_init(&log_mutex, NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
for (i=1; i<argc; i++) {
|
for (i=1; i<argc; i++) {
|
||||||
if(*argv[i]=='-') {
|
if(*argv[i]=='-') {
|
||||||
|
Loading…
Reference in New Issue
Block a user