[strace] Signal description instead of signal name printed
|Reported by:||bonefish||Owned by:||bonefish|
|Component:||Applications/Command Line Tools||Version:||R1/Development|
|Has a Patch:||no||Platform:||All|
I broke printing the name of the signal when working on the signal support in 2011. Instead of the signal name (e.g. "SIGCHLD") and the signal description (e.g. "Child exited") it now prints the signal description twice. Cf. http://cgit.haiku-os.org/haiku/diff/src/bin/debug/strace/strace.cpp?id=24df65921befcd0ad0c5c7866118f922da61cb96 for the offending change.
It might be good to introduce a (semi public) libroot function to return the signal name, so we only have a single place we need to maintain. Alternatively the build system could generate the list from <signal.h>, though that might not be entirely trivial.