[CRIU] [PATCH 4/7] crtools: add image contants for pending signals

Andrey Vagin avagin at openvz.org
Tue Dec 4 04:50:28 EST 2012


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

diff --git a/image.c b/image.c
index 70ababe..cfcad53 100644
--- a/image.c
+++ b/image.c
@@ -130,6 +130,7 @@ struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX] = {
 	FD_ENTRY(TMPFS,		"tmpfs-%d.tar.gz", show_raw_image),
 	FD_ENTRY(TTY,		"tty",		 show_tty),
 	FD_ENTRY(TTY_INFO,	"tty-info",	 show_tty_info),
+	FD_ENTRY(SIGNAL,	"signal-%d",	 show_siginfo),
 };
 
 static struct cr_fdset *alloc_cr_fdset(int nr)
diff --git a/include/crtools.h b/include/crtools.h
index 7d85668..2b7c19d 100644
--- a/include/crtools.h
+++ b/include/crtools.h
@@ -34,6 +34,7 @@ enum {
 	CR_FD_ITIMERS,
 	CR_FD_CREDS,
 	CR_FD_FS,
+	CR_FD_SIGNAL,
 	_CR_FD_TASK_TO,
 
 	/*
diff --git a/include/image.h b/include/image.h
index 916b9a8..2fe2435 100644
--- a/include/image.h
+++ b/include/image.h
@@ -61,6 +61,7 @@
 #define NETDEV_MAGIC		0x57373951 /* Yaroslavl */
 #define TTY_MAGIC		0x59433025 /* Pushkin */
 #define TTY_INFO_MAGIC		0x59453036 /* Kolpino */
+#define SIGNAL_MAGIC		0x59255647 /* Berezniki */
 
 #define IFADDR_MAGIC		RAW_IMAGE_MAGIC
 #define ROUTE_MAGIC		RAW_IMAGE_MAGIC
-- 
1.7.11.7



More information about the CRIU mailing list