jdk/src/java.base/unix/native/libnio/ch/NativeThread.c
changeset 34880 00d8bef75229
parent 25859 3317bb8137f4
child 41215 e139c1cb033a
--- a/jdk/src/java.base/unix/native/libnio/ch/NativeThread.c	Tue Jan 05 14:33:35 2016 -0500
+++ b/jdk/src/java.base/unix/native/libnio/ch/NativeThread.c	Tue Jan 05 13:57:32 2016 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2002, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -93,6 +93,10 @@
 #else
     ret = pthread_kill((pthread_t)thread, INTERRUPT_SIGNAL);
 #endif
+#ifdef MACOSX
+    if (ret != 0 && ret != ESRCH)
+#else
     if (ret != 0)
+#endif
         JNU_ThrowIOExceptionWithLastError(env, "Thread signal failed");
 }