Change the way the process name is reading 35/227535/2
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 11 Mar 2020 09:38:38 +0000 (10:38 +0100)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Thu, 12 Mar 2020 11:20:46 +0000 (12:20 +0100)
commit19d23d5e19c0a1076412d650c29b3782be5cd614
tree1913dd8d12883a207e92b4a64be378036aaec9b8
parent19bcd753fabf6fa35509f5eba1ced929a5f0e73d
Change the way the process name is reading

Applications launched by process pool have a modified
/proc/<pid>/cmdline, so cmdline must be treated in a specific way.  Now
the process name is the content of /proc/<pid>/cmdline to the first
occurrence of ' ' (space) or '\0' (NULL byte).

Change-Id: I3af1b9d1df86540b16ea238baa0f03152545e408
Signed-off-by: Mateusz Moscicki <m.moscicki2@partner.samsung.com>
src/crash-manager/crash-manager.c