Commit 3c3271d9 authored by Ondřej Filip's avatar Ondřej Filip

Close fd of config file after reconfiguration.

parent 85ae398a
......@@ -91,13 +91,16 @@ static int
unix_read_config(struct config **cp, char *name)
struct config *conf = config_alloc(name);
int ret;
*cp = conf;
conf_fd = open(name, O_RDONLY);
if (conf_fd < 0)
return 0;
cf_read_hook = cf_read;
return config_parse(conf);
ret = config_parse(conf);
return ret;
static void
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment