flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ches...@apache.org
Subject [1/3] flink git commit: [FLINK-6644] Don't register HUP signal handler on Windows
Date Sat, 20 May 2017 17:32:19 GMT
Repository: flink
Updated Branches:
  refs/heads/release-1.3 058e0f0da -> fcf8466a5


[FLINK-6644] Don't register HUP signal handler on Windows

This closes #3955.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/fcf8466a
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/fcf8466a
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/fcf8466a

Branch: refs/heads/release-1.3
Commit: fcf8466a5aad27f55915801953ba095a2233a9ff
Parents: 1bd7599
Author: zentol <chesnay@apache.org>
Authored: Fri May 19 17:34:47 2017 +0200
Committer: zentol <chesnay@apache.org>
Committed: Sat May 20 16:05:40 2017 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/flink/runtime/util/SignalHandler.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/fcf8466a/flink-runtime/src/main/java/org/apache/flink/runtime/util/SignalHandler.java
----------------------------------------------------------------------
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/util/SignalHandler.java
b/flink-runtime/src/main/java/org/apache/flink/runtime/util/SignalHandler.java
index cff8ba1..cedbcb6 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/util/SignalHandler.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/util/SignalHandler.java
@@ -18,6 +18,7 @@
 
 package org.apache.flink.runtime.util;
 
+import org.apache.flink.util.OperatingSystem;
 import org.slf4j.Logger;
 import sun.misc.Signal;
 
@@ -67,7 +68,9 @@ public class SignalHandler {
 			}
 			registered = true;
 
-			final String[] SIGNALS = { "TERM", "HUP", "INT" };
+			final String[] SIGNALS = OperatingSystem.isWindows()
+				? new String[]{ "TERM", "INT"}
+				: new String[]{ "TERM", "HUP", "INT" };
 			
 			StringBuilder bld = new StringBuilder();
 			bld.append("Registered UNIX signal handlers for [");


Mime
View raw message