[proxy] Use USR2 signal to tell weavewait when to continue

There was a race condition with containers running and exiting before
`weave attach` was finished, which would cause an error.
This commit is contained in:
Paul Bellamy committed 2015-06-02 15:48:49 +01:00
1 parent cb92e6b0d2
commit 92444a75eb
3 files changed
+19 -9

No files matched your search

+2 -1
View File
@@ -39,5 +39,6 @@ func (i *startContainerInterceptor) InterceptResponse(r *http.Response) error {
Warning.Printf("Attaching container %s to weave network failed: %s", container.ID, string(output))
return errors.New(string(output))
}
return nil
return i.client.KillContainer(docker.KillContainerOptions{ID: container.ID, Signal: docker.SIGUSR2})
}