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

pstree: when updating sid for shell job also update matching pgid #1730

Merged

Conversation

Snorch
Copy link
Member

@Snorch Snorch commented Jan 27, 2022

If we replace old_sid with current_sid we should also do same
replacement for matching pgid (=old_sid).

Reported in CRIU gitter by Younes Manton (@ymanton)

Signed-off-by: Pavel Tikhomirov [email protected]

@Snorch Snorch force-pushed the pstree-fix-sid-and-pgid-replacing branch 2 times, most recently from ffc2574 to 57049d0 Compare January 27, 2022 15:39
criu/pstree.c Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Merging #1730 (75d373f) into criu-dev (04f8368) will increase coverage by 0.04%.
The diff coverage is 0.00%.

❗ Current head 75d373f differs from pull request most recent head 57049d0. Consider uploading reports for the commit 57049d0 to get more accurate results
Impacted file tree graph

@@             Coverage Diff              @@
##           criu-dev    #1730      +/-   ##
============================================
+ Coverage     70.68%   70.72%   +0.04%     
============================================
  Files           127      127              
  Lines         30960    30986      +26     
============================================
+ Hits          21885    21916      +31     
+ Misses         9075     9070       -5     
Impacted Files Coverage Δ
criu/pstree.c 85.07% <0.00%> (-0.47%) ⬇️
include/common/lock.h 89.18% <0.00%> (-7.87%) ⬇️
criu/uffd.c 79.36% <0.00%> (ø)
criu/include/image.h 100.00% <0.00%> (ø)
include/common/err.h 100.00% <0.00%> (ø)
include/common/list.h 100.00% <0.00%> (ø)
criu/include/parasite.h 100.00% <0.00%> (ø)
compel/src/lib/log.c
criu/include/imgset.h
criu/arch/x86/crtools.c
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 04f8368...57049d0. Read the comment docs.

If we replace old_sid with current_sid we should also do same
replacement for matching pgid (=old_sid).

Reported in CRIU gitter by Younes Manton (@ymanton)

Signed-off-by: Pavel Tikhomirov <[email protected]>
@Snorch Snorch force-pushed the pstree-fix-sid-and-pgid-replacing branch from 57049d0 to 7876124 Compare January 28, 2022 08:42
Copy link
Member

@rst0git rst0git left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@ymanton ymanton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me. Thanks!

@avagin avagin merged commit 486fa52 into checkpoint-restore:criu-dev Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants