[CRIU] [PATCHv1 0/2] implement --leave-stopped option for CRIU restorer

Eugene Batalov eabatalov89 at gmail.com
Mon May 2 08:46:04 PDT 2016


Hello.
This patch allows to restore process tree in stopped state.
Every process in the tree is sent SIGSTOP before detaching from it.
Patch set also includes simple autotest for this feature.

This is the second part of task https://github.com/xemul/criu/issues/46

=== V0 -> V1 ===
- Rebased to criu-dev branch

Kravchenko Dmitrii (2):
  restorer: implement restore of ps tree in stopped state
  test/others/leave-stopped: implement test for new --leave-stopped
    option

 criu/cr-restore.c                         |  3 +-
 criu/crtools.c                            | 10 +++++++
 test/others/leave-stopped/.gitignore      |  3 ++
 test/others/leave-stopped/Makefile        |  7 +++++
 test/others/leave-stopped/pstree.c        | 39 +++++++++++++++++++++++++
 test/others/leave-stopped/run.sh          | 31 ++++++++++++++++++++
 test/others/leave-stopped/tree_checker.py | 47 +++++++++++++++++++++++++++++++
 7 files changed, 139 insertions(+), 1 deletion(-)
 create mode 100644 test/others/leave-stopped/.gitignore
 create mode 100644 test/others/leave-stopped/Makefile
 create mode 100644 test/others/leave-stopped/pstree.c
 create mode 100755 test/others/leave-stopped/run.sh
 create mode 100755 test/others/leave-stopped/tree_checker.py

-- 
1.9.1



More information about the CRIU mailing list