mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +00:00
unseize: Don't print error when unseizing stopped task into stopped state
Just a small mistake in prev patch. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
a2eaa5cf44
commit
d4df900236
7
ptrace.c
7
ptrace.c
@ -25,9 +25,10 @@ int unseize_task(pid_t pid, int orig_st, int st)
|
|||||||
|
|
||||||
if (st == TASK_DEAD)
|
if (st == TASK_DEAD)
|
||||||
kill(pid, SIGKILL);
|
kill(pid, SIGKILL);
|
||||||
else if (st == TASK_STOPPED && orig_st == TASK_ALIVE)
|
else if (st == TASK_STOPPED) {
|
||||||
kill(pid, SIGSTOP);
|
if (orig_st == TASK_ALIVE)
|
||||||
else if (st == TASK_ALIVE)
|
kill(pid, SIGSTOP);
|
||||||
|
} else if (st == TASK_ALIVE)
|
||||||
/* do nothing */ ;
|
/* do nothing */ ;
|
||||||
else
|
else
|
||||||
pr_err("Unknown final state %d\n", st);
|
pr_err("Unknown final state %d\n", st);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user