[Devel] [PATCH 2/6] vzctl: save PID of init in a state file

2013-05-21 Thread Andrey Vagin
CRIU requires a pid of the init. Signed-off-by: Andrey Vagin ava...@openvz.org --- include/types.h| 2 ++ include/util.h | 1 + src/lib/hooks_ct.c | 18 +- src/lib/util.c | 5 + 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/include/types.h

Re: [Devel] [PATCH 2/6] vzctl: save PID of init in a state file

2013-05-17 Thread Andrew Vagin
On Thu, May 16, 2013 at 08:25:57PM +0400, Glauber Costa wrote: On 05/16/2013 04:14 PM, Andrey Vagin wrote: CRIU requires a pid of the init. Signed-off-by: Andrey Vagin ava...@openvz.org The way you coded it, it seems to me that we will always overwrite the pid file, which is fine: this

[Devel] [PATCH 2/6] vzctl: save PID of init in a state file

2013-05-16 Thread Andrey Vagin
CRIU requires a pid of the init. Signed-off-by: Andrey Vagin ava...@openvz.org --- include/types.h| 2 ++ include/util.h | 1 + src/lib/hooks_ct.c | 20 ++-- src/lib/util.c | 5 + 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/include/types.h

Re: [Devel] [PATCH 2/6] vzctl: save PID of init in a state file

2013-05-16 Thread Glauber Costa
On 05/16/2013 04:14 PM, Andrey Vagin wrote: CRIU requires a pid of the init. Signed-off-by: Andrey Vagin ava...@openvz.org The way you coded it, it seems to me that we will always overwrite the pid file, which is fine: this way we won't run into the usual pid file already exists kinds of