diff --git a/daemon/daemon.go b/daemon/daemon.go index 9911f3d2a3506f167ea16c262565cd83163d409a..8e90378b40789b7460811e0997b993a3642a5293 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -669,7 +669,7 @@ func NewDaemon(config *Config, registryService registry.Service, containerdRemot return nil, err } - // Plugin system initialization should happen before restore. Dont change order. + // Plugin system initialization should happen before restore. Do not change order. if err := pluginInit(d, config, containerdRemote); err != nil { return nil, err } diff --git a/libcontainerd/client_windows.go b/libcontainerd/client_windows.go index 86dd9c60deb758230d19c4de7b5e5a3e066e79e2..1e833ce86263b6cffd778d59ab0f2f01c186939c 100644 --- a/libcontainerd/client_windows.go +++ b/libcontainerd/client_windows.go @@ -328,6 +328,7 @@ func (clnt *client) AddProcess(ctx context.Context, containerID, processFriendly // Tell the engine to attach streams back to the client if err := clnt.backend.AttachStreams(processFriendlyName, *iopipe); err != nil { + clnt.lock(containerID) return err }