Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: c3f0f139e155f53c83e0a81f14094e9d0f40e8e9
      https://github.com/lxc/lxc/commit/c3f0f139e155f53c83e0a81f14094e9d0f40e8e9
  Author: Qiang Huang <[email protected]>
  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 <[email protected]>
Acked-by: Stéphane Graber <[email protected]>


_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to