mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
Ignore ECONNRESET when closing a socket
See https://github.com/battleblow/openjdk-jdk11u/issues/94 for details
This commit is contained in:
parent
980825dbf0
commit
4c18554694
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=527146
@ -3,6 +3,7 @@
|
||||
PORTNAME= openjdk
|
||||
DISTVERSIONPREFIX= jdk-
|
||||
DISTVERSION= ${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_PATCH_VERSION}+${JDK_BUILD_NUMBER}-${BSD_JDK_VERSION}
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= java devel
|
||||
PKGNAMESUFFIX?= ${JDK_MAJOR_VERSION}
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- src/java.base/unix/native/libnio/ch/FileDispatcherImpl.c
|
||||
+++ src/java.base/unix/native/libnio/ch/FileDispatcherImpl.c
|
||||
@@ -291,7 +291,7 @@ Java_sun_nio_ch_FileDispatcherImpl_release0(JNIEnv *env, jobject this,
|
||||
static void closeFileDescriptor(JNIEnv *env, int fd) {
|
||||
if (fd != -1) {
|
||||
int result = close(fd);
|
||||
- if (result < 0)
|
||||
+ if (result < 0 && errno != ECONNRESET)
|
||||
JNU_ThrowIOExceptionWithLastError(env, "Close failed");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user