Skip to content

use requested stdio in call to exec in shim host#1044

Merged
katiewasnothere merged 1 commit intomicrosoft:masterfrom
katiewasnothere:fix_exec_in_shim_host
Jun 9, 2021
Merged

use requested stdio in call to exec in shim host#1044
katiewasnothere merged 1 commit intomicrosoft:masterfrom
katiewasnothere:fix_exec_in_shim_host

Conversation

@katiewasnothere
Copy link

This PR addresses broken tests for process isolated container update by making use of the requested stdio pipes specified in the call to ExecInShimHost

Signed-off-by: Kathryn Baldauf kabaldau@microsoft.com

Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com>
@katiewasnothere katiewasnothere requested a review from a team as a code owner June 8, 2021 23:18
}
np, err := NewNpipeIO(ctx, req.Stdin, req.Stdout, req.Stderr, req.Terminal)
if err != nil {
return 0, err
Copy link
Contributor

Choose a reason for hiding this comment

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

Return -1 here?

Copy link
Contributor

@dcantah dcantah Jun 8, 2021

Choose a reason for hiding this comment

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

Ehh we don't for ExecInUvm in this case either or for there being no args, I usually return the error case if err != nil but this is just a nit anyways.

Copy link
Contributor

@ambarve ambarve left a comment

Choose a reason for hiding this comment

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

LGTM!

@katiewasnothere katiewasnothere merged commit 43d3084 into microsoft:master Jun 9, 2021
@katiewasnothere katiewasnothere deleted the fix_exec_in_shim_host branch June 9, 2021 00:12
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.

3 participants