[Devel] [PATCH 4/8] checkpoint: clean up __SI_POLL siginfo save/restore

Nathan Lynch ntl at pobox.com
Tue Jul 13 08:44:20 PDT 2010


ckpt_siginfo now has fields for band and fd; use them for the
__SI_POLL case.

Signed-off-by: Nathan Lynch <ntl at pobox.com>
---
 kernel/signal.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/kernel/signal.c b/kernel/signal.c
index e78a08e..df9b7be 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -2929,8 +2929,8 @@ static void fill_siginfo(struct ckpt_siginfo *si, const siginfo_t *info)
 		si->csi_sys_private = info->si_sys_private;
 		break;
 	case __SI_POLL:
-		si->csi_pid = info->si_band;
-		si->csi_int = info->si_fd;
+		si->csi_band = info->si_band;
+		si->csi_fd = info->si_fd;
 		break;
 	case __SI_FAULT:
 		si->csi_ptr = (unsigned long) info->si_addr;
@@ -2978,8 +2978,8 @@ static int load_siginfo(siginfo_t *info, const struct ckpt_siginfo *si)
 		info->si_sys_private = si->csi_sys_private;
 		break;
 	case __SI_POLL:
-		info->si_band = si->csi_pid;
-		info->si_fd = si->csi_int;
+		info->si_band = si->csi_band;
+		info->si_fd = si->csi_fd;
 		break;
 	case __SI_FAULT:
 		info->si_addr = (void __user *) (unsigned long) si->csi_ptr;
-- 
1.7.1.1

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list