Commit 9dfe57f3 for xz
commit 9dfe57f32f27292064438b50e525da568a28205f
Author: Lasse Collin <lasse.collin@tukaani.org>
Date: Thu Dec 3 11:52:31 2026 +0200
xz: Fix comments
diff --git a/src/xz/signals.c b/src/xz/signals.c
index 64643695..e8d90a4d 100644
--- a/src/xz/signals.c
+++ b/src/xz/signals.c
@@ -22,8 +22,8 @@ volatile sig_atomic_t user_abort = false;
/// been done.
static volatile sig_atomic_t exit_signal = 0;
-/// Mask of signals for which we have established a signal handler to set
-/// user_abort to true.
+/// Mask of the signals for which we have established a signal handler.
+/// These signals are blocked when a signal handler runs.
static sigset_t hooked_signals;
/// True once signals_init() has finished. This is used to skip blocking
@@ -91,7 +91,7 @@ signals_init(void)
// from system headers on Solaris.
struct sigaction my_sa;
- // All the signals that we handle we also blocked while the signal
+ // All the signals that we handle are blocked while the signal
// handler runs.
my_sa.sa_mask = hooked_signals;
diff --git a/src/xz/signals.h b/src/xz/signals.h
index 629335d4..3b06243e 100644
--- a/src/xz/signals.h
+++ b/src/xz/signals.h
@@ -24,9 +24,8 @@ extern void signals_init(void);
# define signals_block() do { } while (0)
# define signals_unblock() do { } while (0)
#else
-/// Block the signals which don't have SA_RESTART and which would just set
-/// user_abort to true. This is handy when we don't want to handle EINTR
-/// and don't want SA_RESTART either.
+/// Block the signals for which we have established a signal handler. This is
+/// handy when we don't want to handle EINTR and don't want SA_RESTART either.
extern void signals_block(void);
/// Unblock the signals blocked by signals_block().