changeset 79510:f5153b60663d

(emacs_close) [MAC_OSX && HAVE_CARBON]: Use mac_try_close_socket.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Fri, 30 Nov 2007 08:19:44 +0000
parents e4c75e9b905b
children 76e454b2427c
files src/sysdep.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Fri Nov 30 08:19:36 2007 +0000
+++ b/src/sysdep.c	Fri Nov 30 08:19:44 2007 +0000
@@ -3320,6 +3320,15 @@
   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;