common: Improving message sent to user when getting signals #21000
As per https://tracker.ceph.com/issues/23320, if we get an abort() or pthread_kill() we could end up in a situation were the info reported to the user is very misleading since we try to get the program name while pid = 0.
The fact this is because the kernel is the emitter in such case. So this PR is about making the sender being explicted when its kernel and offer a way to specify a proper message regarding si_code value, unless print the structure for debugging purpose.
smithfarm left a comment
As @tchaikov already requested, please change the following line in the commit message:
to the correct form: