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

reexec.Command(): panic if reexec.Init() wasn't called #1058

Merged
merged 1 commit into from
Nov 10, 2021

Conversation

nalind
Copy link
Member

@nalind nalind commented Nov 10, 2021

If we start preparing to reexec ourselves, but didn't call Init() earlier, panic(). The alternative is that the child process we start
won't do the work we want it to do as a dedicated subprocess, failing in a way which could be difficult to troubleshoot.

Fixes containers/image#1401 by making it easier to spot the bug.

If we start preparing to reexec ourselves, but didn't call `Init()`
earlier, `panic()`.  The alternative is that the child process we start
won't do the work we want it to do as a dedicated subprocess, failing in
a way which could be difficult to troubleshoot.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

LGTM

@rhatdan
Copy link
Member

rhatdan commented Nov 10, 2021

LGTM

@rhatdan rhatdan merged commit 3ed332e into containers:main Nov 10, 2021
@nalind nalind deleted the reexec-require-init branch November 10, 2021 22:30
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.

copying a new image from a registry to local storage deadlocks somewhere
3 participants