[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] * configure.ac: Avoid gnulib's test for pthread_sigmask
From: |
Paul Eggert |
Subject: |
Re: [PATCH] * configure.ac: Avoid gnulib's test for pthread_sigmask |
Date: |
Thu, 2 May 2019 17:42:28 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 5/2/19 4:09 PM, Alex Gramiak wrote:
> The nearby comment states "Avoid gnulib's test for pthread_sigmask", but
> the method used doesn't seem to work.
>
> What I see is that gl_INIT is called, which calls
> gl_FUNC_PTHREAD_SIGMASK.
It what sense is it not working? gl_FUNC_PTHREAD_SIGMASK is not the same
as "gnulib's test for pthread_sigmask", so the comment is not
contradicted by the fact that gl_INIT calls gl_FUNC_PTHREAD_SIGMASK. The
latter macro does some useful sanity checking on platforms where
pthread_sigmask exists but doesn't do anything, e.g., on Solaris 11
Update 3 or older if you don't define _REENTRANT then Emacs's pthreaded
code will likely fail in subtle ways (see
<https://blogs.oracle.com/solaris/mtreentrant-v2>).