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 15:54:42 GMT
Repository: flink
Updated Branches:
  refs/heads/master 040356391 -> 654d0ede9


[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/654d0ede
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/654d0ede
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/654d0ede

Branch: refs/heads/master
Commit: 654d0ede97c4368b8323c6cc7dd382e1860df55e
Parents: 0a5b98e
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:03 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/654d0ede/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