Windows: [TP4] docker kill handling

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2015-10-12 16:34:03 -07:00
parent 831c2e7a7b
commit a81f89aa9d

View file

@ -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
}