Branch
Hash :
e9d8c4f4
Author :
Date :
2025-05-16T15:51:13
sigprocmask: Make multithread-safe on native Windows. * lib/sigprocmask.c: Include glthread/lock.h. (sig_lock): New variable. (blocked_set): Remove 'volatile'. (sigprocmask, _gl_raise_SIGPIPE): Use the sig_lock. * modules/sigprocmask (Depends-on): Add lock. * doc/posix-functions/sigprocmask.texi: Mention the async-safety issue.
Description:
POSIX compatible signal blocking.
Files:
lib/sigprocmask.c
m4/signalblocking.m4
Depends-on:
signal-h
stdint-h [test $HAVE_POSIX_SIGNALBLOCKING = 0]
lock [test $HAVE_POSIX_SIGNALBLOCKING = 0]
raise [test $HAVE_POSIX_SIGNALBLOCKING = 0]
msvc-inval [test $HAVE_POSIX_SIGNALBLOCKING = 0]
configure.ac:
gl_SIGNALBLOCKING
gl_CONDITIONAL([GL_COND_OBJ_SIGPROCMASK], [test $HAVE_POSIX_SIGNALBLOCKING = 0])
AM_COND_IF([GL_COND_OBJ_SIGPROCMASK], [
gl_PREREQ_SIGPROCMASK
])
gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
Makefile.am:
if GL_COND_OBJ_SIGPROCMASK
lib_SOURCES += sigprocmask.c
endif
Include:
<signal.h>
License:
LGPLv2+
Maintainer:
all