summaryrefslogtreecommitdiff
path: root/src/xgselect.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-12-30 11:36:07 +0200
committerEli Zaretskii <eliz@gnu.org>2016-12-30 11:36:07 +0200
commit543532313a1d9570d6a74a7846b4e776a2282964 (patch)
tree72b0fc8e8fb161f04af620ef14a02836ad672791 /src/xgselect.h
parentd9b126890dd729e18cb5522c38f33fc70daadd79 (diff)
downloademacs-543532313a1d9570d6a74a7846b4e776a2282964.tar.gz
Attempt to fix crashes with threads in GTK builds
* src/xgselect.c (xg_select): Call pselect via thread_select, not directly, to avoid running Lisp (via unblock_input) when more than one thread could be running. (Bug#25247) * src/process.c (wait_reading_process_output) [HAVE_GLIB]: Call xg_select directly instead of through thread_select. * src/xgselect.h (xg_select): Last 2 arguments are no longer 'const', for consistency with thread_select.
Diffstat (limited to 'src/xgselect.h')
-rw-r--r--src/xgselect.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xgselect.h b/src/xgselect.h
index 4c56633e966..a56694229e5 100644
--- a/src/xgselect.h
+++ b/src/xgselect.h
@@ -27,7 +27,6 @@ struct timespec;
extern int xg_select (int max_fds,
fd_set *rfds, fd_set *wfds, fd_set *efds,
- struct timespec const *timeout,
- sigset_t const *sigmask);
+ struct timespec *timeout, sigset_t *sigmask);
#endif /* XGSELECT_H */