mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Test ‘scm_i_signal_delivery_thread’ with ‘scm_is_true’.
Fixes a regression introduced in
5a8502a494
and uncovered with
‘-DSCM_DEBUG_TYPING_STRICTNESS=2’ builds.
* libguile/scmsigs.c (scm_i_close_signal_pipe): Test
‘scm_i_signal_delivery_thread’ with ‘scm_is_true’ rather than pointer
equality.
This commit is contained in:
parent
a702097f1c
commit
e791fbcefe
1 changed files with 1 additions and 1 deletions
|
@ -760,7 +760,7 @@ scm_i_close_signal_pipe()
|
||||||
scm_i_pthread_mutex_lock (&signal_delivery_thread_mutex);
|
scm_i_pthread_mutex_lock (&signal_delivery_thread_mutex);
|
||||||
|
|
||||||
#if SCM_USE_PTHREAD_THREADS
|
#if SCM_USE_PTHREAD_THREADS
|
||||||
if (scm_i_signal_delivery_thread != NULL)
|
if (scm_is_true (scm_i_signal_delivery_thread))
|
||||||
close (signal_pipe[1]);
|
close (signal_pipe[1]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue