2
0
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:
Pavel Emelyanov 2013-12-20 23:22:04 +04:00
parent a2eaa5cf44
commit d4df900236

View File

@ -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) {
if (orig_st == TASK_ALIVE)
kill(pid, SIGSTOP); kill(pid, SIGSTOP);
else if (st == TASK_ALIVE) } 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);