aboutsummaryrefslogtreecommitdiffstats
path: root/src/xgselect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xgselect.c')
-rw-r--r--src/xgselect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xgselect.c b/src/xgselect.c
index e418e1a3c4e..2f23764ae41 100644
--- a/src/xgselect.c
+++ b/src/xgselect.c
@@ -76,6 +76,9 @@ xg_select (int fds_lim, fd_set *rfds, fd_set *wfds, fd_set *efds,
76 76
77 if (gfds_size < n_gfds) 77 if (gfds_size < n_gfds)
78 { 78 {
79 /* Avoid using SAFE_NALLOCA, as that implicitly refers to the
80 current thread. Using xnmalloc avoids thread-switching
81 problems here. */
79 gfds = xnmalloc (n_gfds, sizeof *gfds); 82 gfds = xnmalloc (n_gfds, sizeof *gfds);
80 must_free = 1; 83 must_free = 1;
81 gfds_size = n_gfds; 84 gfds_size = n_gfds;