RFR: 8259943: FileDescriptor.close0 does not handle EINTR [v2]
Brian Burkhalter
bpb at openjdk.java.net
Thu Jan 21 19:16:46 UTC 2021
On Thu, 21 Jan 2021 18:58:53 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8259943: Suppress RESTARTABLE for non-AIX.
>
> src/java.base/unix/native/libjava/io_util_md.c line 173:
>
>> 171: result = close(fd);
>> 172: #endif
>> 173: if (result == -1) {
>
> This needs to be `if (result == -1 && errno != EINTR)`
Yes, I already caught and fixed that gaffe.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2173
More information about the core-libs-dev
mailing list