diff options
author | Eli Zaretskii <eliz@gnu.org> | 2016-12-10 10:49:39 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2016-12-10 10:49:39 +0200 |
commit | 19bc43020d6afa2265447e2dad43ad617812ab38 (patch) | |
tree | 191d058414beaac652b98326807ee8afafd983c3 /src/xgselect.c | |
parent | ad03e7af8b816a9a86480196383eaf080afc28e4 (diff) | |
download | emacs-19bc43020d6afa2265447e2dad43ad617812ab38.tar.gz |
Documentation and commentary improvements
* src/lisp.h:
* src/regex.c:
* src/xgselect.c (xg_select): Improve commentary and formatting.
* doc/lispref/objects.texi (Thread Type, Mutex Type)
(Condition Variable Type): New subsections.
(Type Predicates): Add thread-related predicates.
* doc/lispref/objects.texi (Editing Types):
* doc/lispref/elisp.texi (Top): Update higher-level menus.
Diffstat (limited to 'src/xgselect.c')
-rw-r--r-- | src/xgselect.c | 3 |
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; |