This isn't the perfect fix. In fact close_all_fds shouldn't be stored
in the lxc_conf. But this will fix the tests short-term.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
return false;
}
c->daemonize = state;
- /* daemonize implies close_all_fds so set it */
- if (state == 1)
- c->lxc_conf->close_all_fds = 1;
container_mem_unlock(c);
return true;
}
* while container is running...
*/
if (daemonize) {
+ conf->close_all_fds = 1;
lxc_monitord_spawn(c->config_path);
pid_t pid = fork();