mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 18:45:40 +08:00
fixed: race condition on service stop / restart
Do not close -l file descriptor while there are alive childrent
This commit is contained in:
parent
de21bd0f6a
commit
78e180a054
@ -802,7 +802,6 @@ int MODULEMAINFUNC (int argc, char** argv){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!srv.silent) srv.logfunc(&defparam, (unsigned char *)"Exiting thread");
|
if(!srv.silent) srv.logfunc(&defparam, (unsigned char *)"Exiting thread");
|
||||||
if(fp) fclose(fp);
|
|
||||||
|
|
||||||
srvfree(&srv);
|
srvfree(&srv);
|
||||||
|
|
||||||
@ -820,6 +819,7 @@ int MODULEMAINFUNC (int argc, char** argv){
|
|||||||
if(defparam.hostname)myfree(defparam.hostname);
|
if(defparam.hostname)myfree(defparam.hostname);
|
||||||
if(cbc_string)myfree(cbc_string);
|
if(cbc_string)myfree(cbc_string);
|
||||||
if(cbl_string)myfree(cbl_string);
|
if(cbl_string)myfree(cbl_string);
|
||||||
|
if(fp) fclose(fp);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user