crash-manager: Fix TID finding 90/257690/2
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Thu, 29 Apr 2021 10:57:55 +0000 (12:57 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Fri, 30 Apr 2021 12:30:23 +0000 (14:30 +0200)
commitb201ada26638ce5d97ccdb29b20d6669b4ef8e55
treef8c1c640921f52c495370ede31c1ddbb61624efc
parent61cac4c900f1dc2b94a9092d444b041786d8bd64
crash-manager: Fix TID finding

To find a thread ID that crashed crash-worker checked if
/proc/<pid>/tasks/<pid>/wchan contains pipe_wait or do_coredump.
Additionally it should check if pipe_write is there, because since
kernel 5.10 this content is for the thread that crashed.

Change-Id: Ic45913306d4f5b39ae704abdd58bbd79fef5e7cd
src/shared/util.c