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

ztdm: inhfd: handle child hanging #2251

Draft
wants to merge 1 commit into
base: criu-dev
Choose a base branch
from

Conversation

osctobe
Copy link
Contributor

@osctobe osctobe commented Aug 24, 2023

Let's kill the child when the test is hanging. Due to PEP 475 the SIGALRM handler needs to throw an exception to be able to interrupt wait(). To improve debuggig, close the fd in the child after reading it and detect that in the parent to show whether the child hung part way.

@osctobe osctobe requested a review from avagin August 24, 2023 17:49
@osctobe
Copy link
Contributor Author

osctobe commented Aug 24, 2023

So it seems some tests didn't expect timeouts to work...

Let's kill the child when the test is hanging.  Due to PEP 475 the
SIGALRM handler needs to throw an exception to be able to interrupt
wait().  To improve debuggig, close the fd in the child after reading
it and detect that in the parent to show whether the child hung
part way.

Signed-off-by: Michał Mirosław <emmir@google.com>
@rst0git rst0git added no-auto-close Don't auto-close as a stale issue and removed stale-pr labels Jan 10, 2024
@checkpoint-restore checkpoint-restore deleted a comment from github-actions bot Jan 10, 2024
@checkpoint-restore checkpoint-restore deleted a comment from github-actions bot Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-auto-close Don't auto-close as a stale issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants