MCPcopy Create free account
hub / github.com/3proxy/3proxy / reload

Function reload

src/conf.c:1693–1711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1691}
1692
1693int reload (void){
1694 FILE *fp;
1695 int error = -2;
1696
1697 conf.paused++;
1698 freeconf(&conf);
1699 conf.paused++;
1700
1701 fp = confopen();
1702 if(fp){
1703 error = readconfig(fp);
1704 conf.version++;
1705 if(error) {
1706 freeconf(&conf);
1707 }
1708 if(!writable)fclose(fp);
1709 }
1710 return error;
1711}

Callers 1

cyclestepFunction · 0.85

Calls 3

freeconfFunction · 0.85
confopenFunction · 0.85
readconfigFunction · 0.85

Tested by

no test coverage detected