Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@runcom
Copy link
Member

@runcom runcom commented Dec 14, 2016

This is likely fixing tests and wait: no child processes error when running cri-o.

Fix #268

@mrunalp @jjlakis @feiskyer @Crazykev please test this out (as I cannot reproduce ECHILD error anymore with this patch)

runc does already take care of reaping childs (as I read the code) - I believe we're late here in to reap and killing/stopping/removing/state causes ECHILD so frequently when ops are really fast.

Signed-off-by: Antonio Murdaca [email protected]

@Crazykev
Copy link
Contributor

I didn't see any error either, Good work!! I'll revert that commit from my PR.

@cyphar
Copy link
Contributor

cyphar commented Dec 14, 2016

The reaping isn't handled by runC -- it's not possible to have a subreaper setup if you use create and start. It's handled by conmon (specifically here).

@runcom
Copy link
Member Author

runcom commented Dec 14, 2016

The reaping isn't handled by runC -- it's not possible to have a subreaper setup if you use create and start. It's handled by conmon (specifically here).

right, either way, this patch does seem to fix the issue - @cyphar wdyt?

@sameo
Copy link

sameo commented Dec 14, 2016

It seems I can't reproduce #268 with this patch, thanks @runcom.

"github.com/Sirupsen/logrus"
"github.com/kubernetes-incubator/cri-o/utils"
"github.com/containernetworking/cni/pkg/ns"
"github.com/kubernetes-incubator/cri-o/utils"
Copy link

Choose a reason for hiding this comment

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

Just a nit: This change isn't really needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

this seems a gofmt problem, I have create a commit to add a check in CI.

Copy link
Member Author

Choose a reason for hiding this comment

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

Mmm pretty sure I'm running gofmt with vim, will double check, thanks

Copy link
Contributor

Choose a reason for hiding this comment

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

@runcom yeah, I mean you are right in this PR, this is a gofmt problem brought before.

Copy link
Member Author

Choose a reason for hiding this comment

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

alright then

@cyphar
Copy link
Contributor

cyphar commented Dec 14, 2016

LGTM

2 similar comments
@sameo
Copy link

sameo commented Dec 14, 2016

LGTM

@feiskyer
Copy link
Contributor

LGTM

@feiskyer feiskyer merged commit 7b0c762 into cri-o:master Dec 14, 2016
@runcom runcom deleted the remove-reaper branch December 14, 2016 14:41
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.

Error wait: no child process

6 participants