summaryrefslogtreecommitdiff
path: root/src/xgselect.c
diff options
context:
space:
mode:
authorTino Calancha <tino.calancha@gmail.com>2016-12-10 23:04:12 +0900
committerTino Calancha <tino.calancha@gmail.com>2016-12-10 23:04:12 +0900
commitae31a7fac5c1cb8d5d3cb3238d15a5e3b791fd69 (patch)
tree2dd1b0284abcc06c0d80500d6d8e86505ec05130 /src/xgselect.c
parentafd162d0d782a4889e0c99dc3458a66e36da7cd4 (diff)
parent828b4560cd4a0d8cb9b7a7a3e20ff0c53ba86cfa (diff)
downloademacs-test-concurrency.tar.gz
Merge with remote reptest-concurrency
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,
if (gfds_size < n_gfds)
{
+ /* Avoid using SAFE_NALLOCA, as that implicitly refers to the
+ current thread. Using xnmalloc avoids thread-switching
+ problems here. */
gfds = xnmalloc (n_gfds, sizeof *gfds);
must_free = 1;
gfds_size = n_gfds;