RFR: 8370655: Check EINTR handling InetAddress implementation and NET_ThrowNew [v2]
Michael McMahon
michaelm at openjdk.org
Tue Dec 16 14:11:11 UTC 2025
On Fri, 12 Dec 2025 09:15:21 GMT, Michael McMahon <michaelm at openjdk.org> wrote:
> > Have you verified that a pthread_kill of a thread blocked in getaddrinfo returns EAI_SYSTEM with errno=EINTR? I can't be sure from the man page.
>
> I will try to verify that.
Test was inconclusive. Interrupting getaddrinfo() with a non restarting signal executes the signal handler and automatically restarts the blocking call (probably recv() ) so EINTR is not being returned.
It's likely that the glibc implementation of getaddrinfo() is just restarting the call itself. I think it still makes sense to test for EINTR regardless.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28750#discussion_r2623424783
More information about the net-dev
mailing list