[lxc-devel] [lxc/lxc] c3f0f1: lxc-start: fix the container leak when daemonize
GitHub
noreply at github.com
Sun Jan 19 00:58:06 UTC 2014
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: c3f0f139e155f53c83e0a81f14094e9d0f40e8e9
https://github.com/lxc/lxc/commit/c3f0f139e155f53c83e0a81f14094e9d0f40e8e9
Author: Qiang Huang <h.huangqiang at huawei.com>
Date: 2014-01-18 (Sat, 18 Jan 2014)
Changed paths:
M src/lxc/lxccontainer.c
Log Message:
-----------
lxc-start: fix the container leak when daemonize
When start container with daemon model, we'll have a new daemon
process in lxcapi_start, whose c->numthreads is 2, inherited
from his father. Even his father return to main(), the
lxc_container_put won't affect son's numthreads.
So when daemon stops, he should return to main and do
lxc_container_put again, rather than exit and leave the
container alone.
Signed-off-by: Qiang Huang <h.huangqiang at huawei.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
More information about the lxc-devel
mailing list