]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
signal_handler: Reports pid 0 as Kernel
authorErwan Velu <erwan@redhat.com>
Thu, 22 Mar 2018 05:14:22 +0000 (06:14 +0100)
committerErwan Velu <erwan@redhat.com>
Thu, 19 Apr 2018 07:48:36 +0000 (09:48 +0200)
commitb21467d32601805a167d9e59f7a1c5250b8fff0e
tree35ae63482dab0de10ddbd3f23ab2d105d946f369
parent6931ab7ec9f28c7a301da658c2c9a78b879f91f4
signal_handler: Reports pid 0 as Kernel

When receiving a signal, get_name_by_pid() tries to find what was the process name of the sender.

As per bug #23320, we have case where pid is 0 leading to the following confusing message :

    signal: Interrupt from PID: 0 task name: <unknown> UID: 0

This commit is about returning an explicit "Kernel" as a task name if pid is 0

Signed-off-by: Erwan Velu <erwan@redhat.com>
src/global/signal_handler.cc