]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdbsupport/ChangeLog
scoped_ignore_signal: Use sigprocmask+sigtimedwait instead of signal
[thirdparty/binutils-gdb.git] / gdbsupport / ChangeLog
index ac424f3ae7fd4a4f5f827e223f004ada3302a312..d054899333344cb002b20824f2ca59f9d131d6d8 100644 (file)
@@ -1,3 +1,12 @@
+2021-06-17  Pedro Alves  <pedro@palves.net>
+
+       * scoped_ignore_signal.h
+       (scoped_ignore_signal::scoped_ignore_signal)
+       [HAVE_SIGPROCMASK]: Use sigprocmask to block the signal instead of
+       changing the signal disposition for the whole process.
+       (scoped_ignore_signal::~scoped_ignore_signal) [HAVE_SIGPROCMASK]:
+       Use sigtimedwait and sigprocmask to flush and unblock the signal.
+
 2021-06-17  Pedro Alves  <pedro@palves.net>
 
        * scoped_ignore_sigttou.h: New file, moved from gdb/ and renamed.