strerror (errno));
emacs_abort ();
}
+
+ /* Wait for the thread to be initialized. */
+ while (sem_wait (&thread->select_sem) < 0)
+ ;;
}
#ifdef THREADS_ENABLED
inside pselect, a file descriptor is selected. Data is written to
the file descriptor whenever select is supposed to return. */
+ /* Release the user after initialization. */
+ sem_post (&data->select_sem);
+
while (true)
{
/* Wait for the thread to be released. */
#ifdef THREADS_ENABLED
pthread_setspecific (poll_thread_internal, thread_data);
#endif /* THREADS_ENABLED */
+ /* Release the user after initialization. */
+ sem_post (&data->select_sem);
while (true)
{
(ert-deftest process-tests/fd-setsize-no-crash/make-process ()
"Check that Emacs doesn't crash when trying to use more than
FD_SETSIZE file descriptors (Bug#24325)."
+ ;; Emacs is terminated on Android or aborts when the toolkit fails to
+ ;; allocate sufficient graphics buffer handles long before FD_SETSIZE
+ ;; is exceeded.
+ (skip-when (eq system-type 'android))
(with-timeout (60 (ert-fail "Test timed out"))
(let ((cat (executable-find "cat")))
(skip-unless cat)
(ert-deftest process-tests/fd-setsize-no-crash/make-pipe-process ()
"Check that Emacs doesn't crash when trying to use more than
FD_SETSIZE file descriptors (Bug#24325)."
+ ;; Emacs is terminated on Android or aborts when the toolkit fails to
+ ;; allocate sufficient graphics buffer handles long before FD_SETSIZE
+ ;; is exceeded.
+ (skip-when (eq system-type 'android))
(with-timeout (60 (ert-fail "Test timed out"))
(process-tests--fd-setsize-test
(process-tests--with-buffers buffers
(ert-deftest process-tests/fd-setsize-no-crash/make-network-process ()
"Check that Emacs doesn't crash when trying to use more than
FD_SETSIZE file descriptors (Bug#24325)."
+ ;; Emacs is terminated on Android or aborts when the toolkit fails to
+ ;; allocate sufficient graphics buffer handles long before FD_SETSIZE
+ ;; is exceeded.
+ (skip-when (eq system-type 'android))
(skip-unless (featurep 'make-network-process '(:server t)))
(skip-unless (featurep 'make-network-process '(:family local)))
;; Avoid hang due to connect/accept handshake on Cygwin (bug#49496).
(ert-deftest process-tests/fd-setsize-no-crash/make-serial-process ()
"Check that Emacs doesn't crash when trying to use more than
FD_SETSIZE file descriptors (Bug#24325)."
+ ;; Emacs is terminated on Android or aborts when the toolkit fails to
+ ;; allocate sufficient graphics buffer handles long before FD_SETSIZE
+ ;; is exceeded.
+ (skip-when (eq system-type 'android))
;; This test cannot be run if PTYs aren't supported.
(skip-when (eq system-type 'windows-nt))
(with-timeout (60 (ert-fail "Test timed out"))