Merge pull request #2252 from pkagrawal/2251-fix

Synchronize the call to linuxContainer.Signal()
This commit is contained in:
Mrunal Patel 2020-03-11 11:11:56 -07:00 committed by GitHub
commit 0ff53526a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -379,6 +379,8 @@ func (c *linuxContainer) start(process *Process) error {
}
func (c *linuxContainer) Signal(s os.Signal, all bool) error {
c.m.Lock()
defer c.m.Unlock()
if all {
return signalAllProcesses(c.cgroupManager, s)
}