mirror of
https://github.com/KjellKod/g3log.git
synced 2025-03-01 02:56:55 +01:00

* restore original sigaction in restoreSignalHandler - Save original sigactions in a map called gSavedSigActions - In restoreSignalHandler, do nothing if there is no saved sigaction. If there is a saved sigaction, then re-install it. - Fixes issue #253 * fix bug found in code review of PR #254 * add functions for reporting sigaction errors - Factor out reportSigactionError functions from functions that call sigaction to allow unit testing. - Use strsignal libc function to convert from signal number to name to eliminate chance of not finding the name in {g,k}Signals maps. * cleanup. perror doesn't need a wrapper. put code under test