]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
signal_handler: Implementing specific messages per context
authorErwan Velu <erwan@redhat.com>
Thu, 22 Mar 2018 05:25:31 +0000 (06:25 +0100)
committerErwan Velu <erwan@redhat.com>
Thu, 19 Apr 2018 07:48:36 +0000 (09:48 +0200)
commitb1037f93bfb356971fe31f9d2fef69d981e28e81
tree7680bf75937ffb5c47faa96705cdddca5c2e2163
parentb21467d32601805a167d9e59f7a1c5250b8fff0e
signal_handler: Implementing specific messages per context

As per bug #23320, regarding the signal we receive, it could be interesting providing a specific message.

If we get a SI_USER we almost print the actual message except we don't print the PID which have no meaning when set to 0.

In all other cases, we do print the full structure to help debuggers understanding the received signal.

This patch is offering a better way to get specific messages based on various si_code values.
It could be expanded later based on debugging feedbacks.

Fixes: http://tracker.ceph.com/issues/23320
Signed-off-by: Erwan Velu <erwan@redhat.com>
src/global/signal_handler.cc