add lock in libcontainerd client AddProcess of Windows
| ... | ... |
@@ -670,7 +670,7 @@ func NewDaemon(config *Config, registryService registry.Service, containerdRemot |
| 670 | 670 |
return nil, err |
| 671 | 671 |
} |
| 672 | 672 |
|
| 673 |
- // Plugin system initialization should happen before restore. Dont change order. |
|
| 673 |
+ // Plugin system initialization should happen before restore. Do not change order. |
|
| 674 | 674 |
if err := pluginInit(d, config, containerdRemote); err != nil {
|
| 675 | 675 |
return nil, err |
| 676 | 676 |
} |
| ... | ... |
@@ -328,6 +328,7 @@ func (clnt *client) AddProcess(ctx context.Context, containerID, processFriendly |
| 328 | 328 |
|
| 329 | 329 |
// Tell the engine to attach streams back to the client |
| 330 | 330 |
if err := clnt.backend.AttachStreams(processFriendlyName, *iopipe); err != nil {
|
| 331 |
+ clnt.lock(containerID) |
|
| 331 | 332 |
return err |
| 332 | 333 |
} |
| 333 | 334 |
|