Handle the fact that the GNU Hurd sets the signal sender PID to -1, not either 0 or the signal sender, in the siginfo structure.

This commit is contained in:
Andrew Wood
2024-12-14 23:41:24 +00:00
parent f0aca0a2ce
commit 7d18083dda
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ static void receiveUSR2( __attribute__((unused))
(void) sigaction(SIGUSR2, &sa, NULL);
raise(SIGUSR2);
#endif
return signalSender == 0 ? 1 : 0;
return signalSender < 1 ? 1 : 0;
]])], [
AC_MSG_RESULT([yes])
AC_DEFINE([SIGINFO_PROVIDES_PID], [1], [Signal handlers can determine the sending PID])
+1
View File
@@ -4,6 +4,7 @@
* *feature:* new bar formats "**%{bar-plain}**", "**%{bar-block}**", "**%{bar-granular}**", "**%{bar-shaded}**" ([#15](https://codeberg.org/a-j-wood/pv/issues/15))
* *feature:* allow decimal values such as "1.5G" with "**--size**", "**--rate-limit**", "**--buffer-size**", and "**error-skip-block**" ([#35](https://codeberg.org/a-j-wood/pv/issues/35))
* *cleanup:* track transfer percentage as a floating point value for better precision (and rounding)
* *cleanup:* correct detection of **--remote** usability on GNU Hurd
* *docs:* simplified the synopsis section of the manual
### 1.9.15 - 8 December 2024