Opened 5 years ago

Last modified 5 years ago

#10944 assigned bug

[strace] Signal description instead of signal name printed

Reported by: bonefish Owned by: bonefish
Priority: normal Milestone: R1
Component: Applications/Command Line Tools Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

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.

Change History (1)

comment:1 Changed 5 years ago by bonefish

Owner: changed from nobody to bonefish
Status: newassigned
Note: See TracTickets for help on using tickets.