Windows: [TP4] docker kill handling
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
831c2e7a7b
commit
a81f89aa9d
1 changed files with 10 additions and 0 deletions
|
@ -42,3 +42,13 @@ func ParseSignal(rawSignal string) (syscall.Signal, error) {
|
|||
}
|
||||
return signal, nil
|
||||
}
|
||||
|
||||
// ValidSignalForPlatform returns true if a signal is valid on the platform
|
||||
func ValidSignalForPlatform(sig syscall.Signal) bool {
|
||||
for _, v := range SignalMap {
|
||||
if v == sig {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue