mirror of
https://github.com/KjellKod/g3log.git
synced 2025-01-19 08:46:42 +01:00
408061280f
* 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