[haiku-bugs] [Haiku] #10944: [strace] Signal description instead of signal name printed

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Sat, 14 Jun 2014 12:54:58 -0000

#10944: [strace] Signal description instead of signal name printed
---------------------------------------------+-----------------------------
 Reporter:  bonefish                         |        Owner:  nobody
     Type:  bug                              |       Status:  new
 Priority:  normal                           |    Milestone:  R1
Component:  Applications/Command Line Tools  |      Version:
 Keywords:                                   |  R1/Development
 Blocking:                                   |   Blocked By:
 Platform:  All                              |  Has a Patch:  0
---------------------------------------------+-----------------------------
 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.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10944>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: