[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:
1 parent
cb92e6b0d2
commit
92444a75eb
3 files changed
+19
-9
No files matched your search
@@ -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})
|
||||
}
|
||||
Reference in new issue
Block a user