src/solaris/native/sun/nio/ch/ServerSocketChannelImpl.c
Print this page
rev 8975 : 8031581: PPC64: Addons and fixes for AIX to pass the jdk regression tests
*** 85,95 ****
--- 85,103 ----
* a connection was eagerly accepted but was reset before
* accept() was called.
*/
for (;;) {
socklen_t sa_len = alloc_len;
+ #ifdef _AIX
+ /* On AIX we can get a deadlock if a filedescriptor is closed
+ * asynchronously while being in accept() state. So better use
+ * the NET_.. APIs to get interruptible IO on AIX (see aix_close.c).
+ */
+ newfd = NET_Accept(ssfd, sa, &sa_len);
+ #else
newfd = accept(ssfd, sa, &sa_len);
+ #endif
if (newfd >= 0) {
break;
}
if (errno != ECONNABORTED) {
break;