[CRIU] [PATCH 2/5] compel: Rename compel_unseize_task into _resume_

Pavel Emelyanov xemul at virtuozzo.com
Fri Nov 25 05:20:45 PST 2016


To be symmetrical with compel_stop_task() one.

Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
 compel/include/uapi/infect.h | 2 +-
 compel/src/lib/infect.c      | 2 +-
 criu/cr-exec.c               | 2 +-
 criu/seize.c                 | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/compel/include/uapi/infect.h b/compel/include/uapi/infect.h
index 8d823c1..746026c 100644
--- a/compel/include/uapi/infect.h
+++ b/compel/include/uapi/infect.h
@@ -27,7 +27,7 @@ extern int compel_wait_task(int pid, int ppid,
 		struct seize_task_status *st);
 
 extern int compel_stop_task(int pid);
-extern int compel_unseize_task(pid_t pid, int orig_state, int state);
+extern int compel_resume_task(pid_t pid, int orig_state, int state);
 
 /*
  * FIXME -- these should be mapped to pid.h's
diff --git a/compel/src/lib/infect.c b/compel/src/lib/infect.c
index df95f5e..f726c47 100644
--- a/compel/src/lib/infect.c
+++ b/compel/src/lib/infect.c
@@ -329,7 +329,7 @@ err:
 	return -1;
 }
 
-int compel_unseize_task(pid_t pid, int orig_st, int st)
+int compel_resume_task(pid_t pid, int orig_st, int st)
 {
 	pr_debug("\tUnseizing %d into %d\n", pid, st);
 
diff --git a/criu/cr-exec.c b/criu/cr-exec.c
index 538ebec..ca76466 100644
--- a/criu/cr-exec.c
+++ b/criu/cr-exec.c
@@ -192,7 +192,7 @@ int cr_exec(int pid, char **opt)
 out_cure:
 	compel_cure(ctl);
 out_unseize:
-	compel_unseize_task(pid, prev_state, prev_state);
+	compel_resume_task(pid, prev_state, prev_state);
 out:
 	return exit_code;
 }
diff --git a/criu/seize.c b/criu/seize.c
index 69aaf0a..a1cf497 100644
--- a/criu/seize.c
+++ b/criu/seize.c
@@ -538,7 +538,7 @@ static void unseize_task_and_threads(const struct pstree_item *item, int st)
 	 * the item->state is the state task was in when we seized one.
 	 */
 
-	compel_unseize_task(item->pid.real, item->pid.state, st);
+	compel_resume_task(item->pid.real, item->pid.state, st);
 
 	if (st == TASK_DEAD)
 		return;
-- 
2.5.0



More information about the CRIU mailing list