mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +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:
1 parent
de21bd0f6a
commit
78e180a054
1 file changed
+1
-1
+1
-1
@@ -802,7 +802,6 @@ int MODULEMAINFUNC (int argc, char** argv){
|
||||
}
|
||||
|
||||
if(!srv.silent) srv.logfunc(&defparam, (unsigned char *)"Exiting thread");
|
||||
if(fp) fclose(fp);
|
||||
|
||||
srvfree(&srv);
|
||||
|
||||
@@ -820,6 +819,7 @@ int MODULEMAINFUNC (int argc, char** argv){
|
||||
if(defparam.hostname)myfree(defparam.hostname);
|
||||
if(cbc_string)myfree(cbc_string);
|
||||
if(cbl_string)myfree(cbl_string);
|
||||
if(fp) fclose(fp);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user