From a81f89aa9d29d3066cb581b14030aad61353c921 Mon Sep 17 00:00:00 2001 From: John Howard Date: Mon, 12 Oct 2015 16:34:03 -0700 Subject: [PATCH] Windows: [TP4] docker kill handling Signed-off-by: John Howard --- signal/signal.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/signal/signal.go b/signal/signal.go index 106fe20..68bb77c 100644 --- a/signal/signal.go +++ b/signal/signal.go @@ -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 +}