Commit 959116ef authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu
Browse files

(emacs_close) [MAC_OSX && HAVE_CARBON]:

Use mac_try_close_socket.
parent 6bfb1e35
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.
......
......@@ -3320,6 +3320,15 @@ emacs_close (fd)
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment