Commit d6b9f742 authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Andrei Vagin

compel: Rename compel_unseize_task into _resume_

To be symmetrical with compel_stop_task() one.
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 167d28bd
...@@ -27,7 +27,7 @@ extern int compel_wait_task(int pid, int ppid, ...@@ -27,7 +27,7 @@ extern int compel_wait_task(int pid, int ppid,
struct seize_task_status *st); struct seize_task_status *st);
extern int compel_stop_task(int pid); 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 * FIXME -- these should be mapped to pid.h's
......
...@@ -327,7 +327,7 @@ err: ...@@ -327,7 +327,7 @@ err:
return -1; 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); pr_debug("\tUnseizing %d into %d\n", pid, st);
......
...@@ -192,7 +192,7 @@ int cr_exec(int pid, char **opt) ...@@ -192,7 +192,7 @@ int cr_exec(int pid, char **opt)
out_cure: out_cure:
compel_cure(ctl); compel_cure(ctl);
out_unseize: out_unseize:
compel_unseize_task(pid, prev_state, prev_state); compel_resume_task(pid, prev_state, prev_state);
out: out:
return exit_code; return exit_code;
} }
...@@ -538,7 +538,7 @@ static void unseize_task_and_threads(const struct pstree_item *item, int st) ...@@ -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. * 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) if (st == TASK_DEAD)
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment