Merged
Conversation
Member
Author
Tested in my environment with 'runc' , it works. |
wking
reviewed
Feb 12, 2018
validation/kill.go
Outdated
| util.WaitingForStatus(*r, util.LifecycleStatusCreated|util.LifecycleStatusStopped, time.Second*10, time.Second*1) | ||
| // KILL MUST be supported and KILL cannot be trapped | ||
| err := r.Kill("KILL") | ||
| // wait before the container been deleted |
Contributor
There was a problem hiding this comment.
I dont think the next line needs a comment; util.WaitingForStatus(*r, util.LifecycleStatusStopped, ...) is pretty clear on it's own. And if you do want a comment, you probably want "been deleted" ->"has stopped".
Member
Author
There was a problem hiding this comment.
I remove this line, updated.
Member
Author
|
Another issue I found, 'util.Fatal' exits immediately, the 'defer' functions will not be called. Add an issue to keep track of this. #582 |
Merged
zhouhao3
reviewed
Feb 26, 2018
validation/killsig.go
Outdated
| t := tap.New() | ||
| t.Header(0) | ||
| bundleDir, err := util.PrepareBundle() | ||
| fmt.Println(bundleDir) |
Signed-off-by: Liang Chenye <liangchenye@huawei.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Liang Chenye liangchenye@huawei.com