]> Savannah Git Hosting - gnulib.git/commit
pthread_sigmask, timer-time: use gl_THREADLIB only if needed
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 May 2014 04:04:04 +0000 (21:04 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 May 2014 04:04:36 +0000 (21:04 -0700)
commitbc729c32914231d7891c9f3e1ee67e5c3915619a
tree99bfbad57d15f31ff3444af5f5e74d40cc29ade0
parent2056a330b7fe2506d1e0bff64da82b9f6ddec9f4
pthread_sigmask, timer-time: use gl_THREADLIB only if needed

Without this fix, Emacs would sometimes call sigprocmask instead
of pthread_sigmask, which is a no-no in multithreaded applications.
Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
* m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
Suppress check for pthread_sigmask working without -lpthread if
the application always links with -lpthread.  Do not link with
$LIBMULTITHREAD if gl_THREADLIB is not defined.
* m4/timer_time.m4 (gl_TIMER_TIME):
Require gl_THREADLIB only if it is defined.  Do not append
$LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
ChangeLog
m4/pthread_sigmask.m4
m4/timer_time.m4