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

Eugene Batalov eabatalov89 at gmail.com
Mon May 2 07:57:27 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

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