[CRIU] [PATCH 07/14] crtools: add image contants for pending signals (v2)
Andrey Vagin
avagin at openvz.org
Thu Jan 17 09:38:31 EST 2013
v2: rename images
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
image.c | 2 ++
include/crtools.h | 2 ++
include/image.h | 2 ++
3 files changed, 6 insertions(+)
diff --git a/image.c b/image.c
index 0c69351..d9c0c1b 100644
--- a/image.c
+++ b/image.c
@@ -134,6 +134,8 @@ struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX] = {
FD_ENTRY(TTY, "tty", show_tty),
FD_ENTRY(TTY_INFO, "tty-info", show_tty_info),
FD_ENTRY(RLIMIT, "rlimit", show_rlimit),
+ FD_ENTRY(SIGNAL, "signal-s-%d", show_siginfo), /* shared signals */
+ FD_ENTRY(PSIGNAL, "signal-p-%d", show_siginfo), /* private signals */
};
static struct cr_fdset *alloc_cr_fdset(int nr)
diff --git a/include/crtools.h b/include/crtools.h
index 8d1000a..bf0ab9d 100644
--- a/include/crtools.h
+++ b/include/crtools.h
@@ -34,6 +34,7 @@ enum {
CR_FD_CREDS,
CR_FD_FS,
CR_FD_RLIMIT,
+ CR_FD_SIGNAL,
_CR_FD_TASK_TO,
/*
@@ -82,6 +83,7 @@ enum {
_CR_FD_GLOB_TO,
CR_FD_TMPFS,
+ CR_FD_PSIGNAL,
CR_FD_MAX
};
diff --git a/include/image.h b/include/image.h
index 2dab7dc..11efbcc 100644
--- a/include/image.h
+++ b/include/image.h
@@ -65,6 +65,8 @@
#define RLIMIT_MAGIC 0x57113925 /* Rostov */
#define FANOTIFY_MAGIC 0x55096122 /* Chelyabinsk */
#define FANOTIFY_MARK_MAGIC 0x56506035 /* Yekaterinburg */
+#define SIGNAL_MAGIC 0x59255647 /* Berezniki */
+#define PSIGNAL_MAGIC SIGNAL_MAGIC
#define IFADDR_MAGIC RAW_IMAGE_MAGIC
#define ROUTE_MAGIC RAW_IMAGE_MAGIC
--
1.7.11.7
More information about the CRIU
mailing list