mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-25 06:13:13 +00:00
Fix pthread_sigmask() usage to block all signals.
This commit is contained in:
@@ -355,7 +355,7 @@ background_thread_create_signals_masked(pthread_t *thread,
|
|||||||
* an empty signal set.
|
* an empty signal set.
|
||||||
*/
|
*/
|
||||||
sigset_t set;
|
sigset_t set;
|
||||||
sigemptyset(&set);
|
sigfillset(&set);
|
||||||
sigset_t oldset;
|
sigset_t oldset;
|
||||||
int mask_err = pthread_sigmask(SIG_SETMASK, &set, &oldset);
|
int mask_err = pthread_sigmask(SIG_SETMASK, &set, &oldset);
|
||||||
if (mask_err != 0) {
|
if (mask_err != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user