Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manager: Fix start/stop race #1263

Merged
merged 1 commit into from Jul 28, 2016
Merged

Conversation

aaronlehmann
Copy link
Collaborator

m.connSelector is set in Run while the manager is starting up. If Stop
is called before this point, m.connSelector might be created after there
is any possibility of stopping it, which would result in a goroutine
leak.

Make Stop wait for the connSelector to be created, to avoid this
situation.

cc @LK4D4

m.connSelector is set in Run while the manager is starting up. If Stop
is called before this point, m.connSelector might be created after there
is any possibility of stopping it, which would result in a goroutine
leak.

Make Stop wait for the connSelector to be created, to avoid this
situation.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
@codecov-io
Copy link

Current coverage is 54.88% (diff: 100%)

Merging #1263 into master will increase coverage by 0.15%

@@             master      #1263   diff @@
==========================================
  Files            78         78          
  Lines         12422      12422          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           6799       6818    +19   
+ Misses         4679       4664    -15   
+ Partials        944        940     -4   

Sunburst

Powered by Codecov. Last update e56300f...4086f0a

@abronan
Copy link
Contributor

abronan commented Jul 28, 2016

LGTM

1 similar comment
@LK4D4
Copy link
Contributor

LK4D4 commented Jul 28, 2016

LGTM

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.

None yet

5 participants