From a6dd43f50c665b85ee59aa3194e7e389e54851eb Mon Sep 17 00:00:00 2001
From: fangyincheng <fangyincheng@sina.com>
Date: Sun, 24 Nov 2019 21:42:33 +0800
Subject: [PATCH] Fix: adapter windows

---
 ....go => graceful_shutdown_signal_darwin.go} |  0
 config/graceful_shutdown_signal_linux.go      | 30 +++++++++++++++++++
 2 files changed, 30 insertions(+)
 rename config/{graceful_shutdown_signal_unix.go => graceful_shutdown_signal_darwin.go} (100%)
 create mode 100644 config/graceful_shutdown_signal_linux.go

diff --git a/config/graceful_shutdown_signal_unix.go b/config/graceful_shutdown_signal_darwin.go
similarity index 100%
rename from config/graceful_shutdown_signal_unix.go
rename to config/graceful_shutdown_signal_darwin.go
diff --git a/config/graceful_shutdown_signal_linux.go b/config/graceful_shutdown_signal_linux.go
new file mode 100644
index 000000000..59c1a5d14
--- /dev/null
+++ b/config/graceful_shutdown_signal_linux.go
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package config
+
+import (
+	"os"
+	"syscall"
+)
+
+var ShutdownSignals = []os.Signal{os.Interrupt, os.Kill, syscall.SIGKILL, syscall.SIGSTOP,
+	syscall.SIGHUP, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGILL, syscall.SIGTRAP,
+	syscall.SIGABRT, syscall.SIGSYS}
+
+var DumpHeapShutdownSignals = []os.Signal{syscall.SIGQUIT, syscall.SIGILL,
+	syscall.SIGTRAP, syscall.SIGABRT, syscall.SIGSYS}
-- 
GitLab