Commit d4df9002 authored by Pavel Emelyanov's avatar Pavel Emelyanov

unseize: Don't print error when unseizing stopped task into stopped state

Just a small mistake in prev patch.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent a2eaa5cf
......@@ -25,9 +25,10 @@ int unseize_task(pid_t pid, int orig_st, int st)
if (st == TASK_DEAD)
kill(pid, SIGKILL);
else if (st == TASK_STOPPED && orig_st == TASK_ALIVE)
kill(pid, SIGSTOP);
else if (st == TASK_ALIVE)
else if (st == TASK_STOPPED) {
if (orig_st == TASK_ALIVE)
kill(pid, SIGSTOP);
} else if (st == TASK_ALIVE)
/* do nothing */ ;
else
pr_err("Unknown final state %d\n", st);
......
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