Skip to content

Commit

Permalink
Merge pull request moby#25642 from anusha-ragunathan/plugin-shutdown-…
Browse files Browse the repository at this point in the history
…lock

Fix deadlock on plugin shutdown.
  • Loading branch information
tiborvass authored Aug 12, 2016
2 parents a9a6d4e + 4d00908 commit 57cf20c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion integration-cli/docker_cli_daemon_experimental_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (s *DockerDaemonSuite) TestDaemonRestartWithPluginEnabled(c *check.C) {
c.Assert(out, checker.Contains, "true")
}

// TestDaemonRestartWithPluginEnabled tests state restore for a disabled plugin
// TestDaemonRestartWithPluginDisabled tests state restore for a disabled plugin
func (s *DockerDaemonSuite) TestDaemonRestartWithPluginDisabled(c *check.C) {
if err := s.d.Start(); err != nil {
c.Fatalf("Could not start daemon: %v", err)
Expand Down
4 changes: 0 additions & 4 deletions plugin/manager_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,6 @@ func (pm *Manager) Shutdown() {
}
}
close(p.exitChan)
pm.Lock()
p.PluginObj.Active = false
pm.save()
pm.Unlock()
}
if err := os.RemoveAll(p.runtimeSourcePath); err != nil {
logrus.Errorf("Remove plugin runtime failed with error: %v", err)
Expand Down

0 comments on commit 57cf20c

Please sign in to comment.