Re: [lxc-devel] [PATCH 3/3] daemon: fix the wrong pid in daemon model

2014-01-22 Thread Serge Hallyn
Quoting Qiang Huang (h.huangqi...@huawei.com): When you start a container in daemon model, you have at least 3 processes: 1. The command the user start (lxc-start -d) 2. The backgrounded fork of that command after start() is done 3. The container init process In PID file, we need (2),

[lxc-devel] [PATCH 3/3] daemon: fix the wrong pid in daemon model

2014-01-21 Thread Qiang Huang
When you start a container in daemon model, you have at least 3 processes: 1. The command the user start (lxc-start -d) 2. The backgrounded fork of that command after start() is done 3. The container init process In PID file, we need (2), but currently we are writing (1), this is wrong because