From 2a24a9ed1b88dd14a78d47721556209ecc83009a Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 14 Jan 2010 10:31:28 +0100 Subject: [PATCH] xg_select uses thread_select --- src/xgselect.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 2.39.5