Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

cpuguy83
Copy link
Member

@cpuguy83 cpuguy83 commented Feb 16, 2017

This loop is not ever going to return since it's never actually setting
the err var except on the first iteration.

Fixes #31060

@tonistiigi
Copy link
Member

LGTM

Copy link
Contributor

Choose a reason for hiding this comment

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

this construction looks extremely confusing for me, why don't just use for {} and do stuff inside?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, makes sense.
Updated.

This loop is not ever going to return since it's never actually setting
the `err` var except on the first iteration.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83 cpuguy83 force-pushed the 31060_fix_log_read_spin branch from 229d77b to 7a17997 Compare February 16, 2017 02:41
@cpuguy83
Copy link
Member Author

This is ready.

Copy link
Member

@dnephin dnephin left a comment

Choose a reason for hiding this comment

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

LGTM

@cpuguy83 cpuguy83 merged commit 39851ea into moby:master Feb 17, 2017
@cpuguy83 cpuguy83 deleted the 31060_fix_log_read_spin branch February 17, 2017 01:15
thaJeztah pushed a commit to thaJeztah/docker that referenced this pull request Feb 18, 2017
Fix cpu spin waiting for log write events
(cherry picked from commit 39851ea)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah mentioned this pull request Feb 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.