< prev index next >
src/solaris/native/sun/nio/ch/ServerSocketChannelImpl.c
Print this page
rev 8219 : 8024900: PPC64: Enable new build on AIX (jdk part)
8024854: PPC64: Basic changes and files to build the class library on AIX
Reviewed-by: alanb, prr, sla, chegar, michaelm, mullan, art, erikj
Contributed-by: luchsh@linux.vnet.ibm.com, spoole@linux.vnet.ibm.com, thomas.stuefe@sap.com
@@ -85,11 +85,20 @@
* a connection was eagerly accepted but was reset before
* accept() was called.
*/
for (;;) {
socklen_t sa_len = alloc_len;
+#ifdef _AIX
+ /*
+ * use NET_.. APIs to get interruptible IO (CSN 561561 2010) (see linux_close.c)
+ * Due to time constraints I do this for AIX only. The whole "blocking close in nio"
+ * issue needs more investigating.
+ */
+ newfd = NET_Accept(ssfd, sa, &sa_len);
+#else
newfd = accept(ssfd, sa, &sa_len);
+#endif
if (newfd >= 0) {
break;
}
if (errno != ECONNABORTED) {
break;
< prev index next >