From: Giuseppe Scrivano Date: Thu, 14 Jan 2010 09:31:28 +0000 (+0100) Subject: xg_select uses thread_select X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2a24a9ed1b88dd14a78d47721556209ecc83009a;p=emacs.git xg_select uses thread_select --- diff --git a/src/xgselect.c b/src/xgselect.c index d93c1bdf405..8dfbb2acba2 100644 --- a/src/xgselect.c +++ b/src/xgselect.c @@ -28,6 +28,9 @@ along with GNU Emacs. If not, see . */ static GPollFD *gfds; static int gfds_size; +int thread_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *, + EMACS_TIME *); + int xg_select (max_fds, rfds, wfds, efds, timeout) int max_fds; @@ -99,8 +102,8 @@ xg_select (max_fds, rfds, wfds, efds, timeout) if (our_tmo) tmop = &tmo; } - nfds = select (max_fds+1, &all_rfds, have_wfds ? &all_wfds : NULL, - efds, tmop); + nfds = thread_select (max_fds+1, &all_rfds, have_wfds ? &all_wfds : NULL, + efds, tmop); if (nfds < 0) retval = nfds;