mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
add lock in libcontainerd client AddProcess of Windows
Signed-off-by: allencloud <allen.sun@daocloud.io>
(cherry picked from commit 5143be0ccf
)
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
1552aa3d9a
commit
7ae3379a64
2 changed files with 2 additions and 0 deletions
|
@ -606,6 +606,7 @@ func NewDaemon(config *Config, registryService registry.Service, containerdRemot
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// Plugin system initialization should happen before restore. Do not change order.
|
||||
if err := pluginInit(d, config, containerdRemote); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
@ -255,6 +255,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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue