[CRIU] [PATCH 04/13] crtools: add image contants for pending signals (v2)

Andrey Vagin avagin at openvz.org
Fri Mar 15 09:49:15 EDT 2013


v2: rename images

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 image.c           | 2 ++
 include/crtools.h | 2 ++
 include/magic.h   | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/image.c b/image.c
index 7a5e1d8..d7e02e3 100644
--- a/image.c
+++ b/image.c
@@ -156,6 +156,8 @@ struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX] = {
 	FD_ENTRY(FILE_LOCKS,	"filelocks-%d",	 show_file_locks),
 	FD_ENTRY(RLIMIT,	"rlimit",	 show_rlimit),
 	FD_ENTRY(PAGES,		"pages-%u",	 NULL),
+	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 3a58675..158872f 100644
--- a/include/crtools.h
+++ b/include/crtools.h
@@ -31,6 +31,7 @@ enum {
 	CR_FD_CREDS,
 	CR_FD_FS,
 	CR_FD_RLIMIT,
+	CR_FD_SIGNAL,
 	_CR_FD_TASK_TO,
 
 	CR_FD_PAGEMAP,
@@ -82,6 +83,7 @@ enum {
 
 	CR_FD_TMPFS,
 	CR_FD_PAGES,
+	CR_FD_PSIGNAL,
 
 	CR_FD_MAX
 };
diff --git a/include/magic.h b/include/magic.h
index bcdf960..867589a 100644
--- a/include/magic.h
+++ b/include/magic.h
@@ -64,6 +64,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