mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +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
1 changed files with 4 additions and 3 deletions
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)
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue