Skip to content

Reorder pipe close to be write/read#46

Merged
estesp merged 1 commit intocontainerd:masterfrom
jterry75:fix_pipe_close
Aug 23, 2018
Merged

Reorder pipe close to be write/read#46
estesp merged 1 commit intocontainerd:masterfrom
jterry75:fix_pipe_close

Conversation

@jterry75
Copy link
Copy Markdown
Contributor

Reorder's pipe close to avoid locking issues. By closing write then read
if there is an outstanding relay that could be holding a lock the write
end of the pipe forwards the EOF close to the read side freeing any
relay's.

Signed-off-by: Justin Terry (VM) juterry@microsoft.com

Reorder's pipe close to avoid locking issues. By closing write then read
if there is an outstanding relay that could be holding a lock the write
end of the pipe forwards the EOF close to the read side freeing any
relay's.

Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
@jterry75
Copy link
Copy Markdown
Contributor Author

@crosbymichael - FYI. Will need to vendor this into containerd after merge here.

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

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