Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seize: Adjust the position of the log message #2553

Merged
merged 1 commit into from
Jan 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions criu/seize.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
static const char freezing[] = "FREEZING";
static const char thawed[] = "THAWED";

enum freezer_state { FREEZER_ERROR = -1, THAWED, FROZEN, FREEZING };

Check warning on line 90 in criu/seize.c

View workflow job for this annotation

GitHub Actions / build


/* Track if we are running on cgroup v2 system. */
static bool cgroup_v2 = false;
Expand Down Expand Up @@ -674,8 +674,6 @@
goto free;
}

pr_info("Seized task %d, state %d\n", pid, ret);

c = alloc_pstree_item();
if (c == NULL) {
ret = -1;
Expand Down Expand Up @@ -713,6 +711,8 @@
if (ret == TASK_STOPPED)
c->pid->stop_signo = compel_parse_stop_signo(pid);

pr_info("Seized task %d, state %d\n", pid, ret);

c->pid->real = pid;
c->parent = item;
c->pid->state = ret;
Expand Down
Loading