aboutsummaryrefslogtreecommitdiff
path: root/src/xz
diff options
context:
space:
mode:
Diffstat (limited to 'src/xz')
-rw-r--r--src/xz/main.c4
-rw-r--r--src/xz/private.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/xz/main.c b/src/xz/main.c
index 23a2de1f..a3d1101a 100644
--- a/src/xz/main.c
+++ b/src/xz/main.c
@@ -109,7 +109,7 @@ signals_block(void)
{
if (signals_block_count++ == 0) {
const int saved_errno = errno;
- sigprocmask(SIG_BLOCK, &hooked_signals, NULL);
+ mythread_sigmask(SIG_BLOCK, &hooked_signals, NULL);
errno = saved_errno;
}
@@ -124,7 +124,7 @@ signals_unblock(void)
if (--signals_block_count == 0) {
const int saved_errno = errno;
- sigprocmask(SIG_UNBLOCK, &hooked_signals, NULL);
+ mythread_sigmask(SIG_UNBLOCK, &hooked_signals, NULL);
errno = saved_errno;
}
diff --git a/src/xz/private.h b/src/xz/private.h
index b463a08e..9f0c52cc 100644
--- a/src/xz/private.h
+++ b/src/xz/private.h
@@ -21,6 +21,7 @@
#define PRIVATE_H
#include "sysdefs.h"
+#include "mythread.h"
#include <sys/types.h>
#include <sys/stat.h>