[CRIU] [PATCH 00/14] Dump/restore of pending signals (v4)

Andrey Vagin avagin at openvz.org
Thu Jan 17 09:38:24 EST 2013


signalfd is used for dumping signals.
rt_sigqueueinfo is used for restoring.

http://wiki.criu.org/Pending_signals

v2: Restore private signals
    Collect all extra SIGCHLD from zombies.
    Save in a protobuf format.
v3: Clean up
v4: rework according with the new kernel interface

Andrey Vagin (14):
  zdtm: add a test case for pending signals
  zdtm: check private pending signals
  syscall: add sigqueueinfo, signalfd and pread
  signalfd: define SFD_RAW, SFD_{SHARED,PER_THREAD}_QUEUE_OFFSET
  protobuf: add a new description for saving siginfo-s
  crtools: add a callback to show signal=*.img
  crtools: add image contants for pending signals (v2)
  crtools: dump pending signals (v2)
  crtools: restore pending signals (v2)
  check: check that signalfd with SFD_RAW and sigqueueinfo with
    positive si_code
  cr-restore: read core before forking
  restore: set up a handler for collecting signals from zombies
  restore: collect signals from zombies
  zdtm.sh: add static/sigpending in the default set

 arch/x86/include/asm/types.h       |   2 +
 arch/x86/syscall-x86-64.def        |   4 +
 cr-check.c                         |  32 +++++
 cr-dump.c                          |  28 ++++-
 cr-restore.c                       | 189 ++++++++++++++++++++++++++----
 cr-show.c                          |  23 ++++
 image.c                            |   2 +
 include/crtools.h                  |   5 +
 include/image.h                    |   2 +
 include/parasite-syscall.h         |   1 +
 include/parasite.h                 |   7 ++
 include/protobuf.h                 |   1 +
 include/restorer.h                 |  10 ++
 include/signalfd.h                 |   6 +
 parasite-syscall.c                 |  31 +++++
 pie/parasite.c                     |  31 +++++
 pie/restorer.c                     |  85 +++++++++++++-
 protobuf.c                         |   2 +
 protobuf/Makefile                  |   1 +
 protobuf/siginfo.proto             |   3 +
 pstree.c                           |  10 ++
 test/zdtm.sh                       |   1 +
 test/zdtm/live/static/Makefile     |   3 +
 test/zdtm/live/static/sigpending.c | 232 +++++++++++++++++++++++++++++++++++++
 24 files changed, 687 insertions(+), 24 deletions(-)
 create mode 100644 protobuf/siginfo.proto
 create mode 100644 test/zdtm/live/static/sigpending.c

--
1.7.11.7



More information about the CRIU mailing list