[CRIU] [PATCH cr 1/2] restore: clean up code, which synchronizes resume of tasks (v2)

Andrey Vagin avagin at openvz.org
Thu Feb 2 05:32:55 EST 2012


I added two mechanism of synchronization. The second one is better.
This patch deletes the first one.

Before we had an entry (pid and lock) for each tasks and all this
entries were shared between all processes. Now we don't need "lock"
and we use pids from crtools to kill all processes if someone failed.

v2: s/malloc/xmalloc

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-restore.c       |   44 +++++++++++++++++++-------------------------
 include/restorer.h |   18 ------------------
 restorer.c         |    3 ---
 3 files changed, 19 insertions(+), 46 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-restore-clean-up-code-which-synchronizes-resume-of-t.patch
Type: text/x-patch
Size: 3714 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120202/714befd2/0001-restore-clean-up-code-which-synchronizes-resume-of-t.bin


More information about the CRIU mailing list