Use mac_try_close_socket.
+2007-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
+ New variable.
+ (mac_try_close_socket) [MAC_OSX]: New function.
+ [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
+ Update cfsockets_for_select. Replace invalid CFRunLoop source.
+
+ * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
+ Use mac_try_close_socket.
+
2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
* s/gnu-kfreebsd.h: New file.
int did_retry = 0;
register int rtnval;
+#if defined (MAC_OSX) && defined (HAVE_CARBON)
+ {
+ extern int mac_try_close_socket P_ ((int));
+
+ if (mac_try_close_socket (fd))
+ return 0;
+ }
+#endif
+
while ((rtnval = close (fd)) == -1
&& (errno == EINTR))
did_retry = 1;