[elf-fdpic] use elf_dump_thread_status() for the dumper thread as well
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 15 Jun 2020 15:03:28 +0000 (11:03 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 27 Jul 2020 18:29:23 +0000 (14:29 -0400)
commitd2f581684a292ece5c10cd56ad51bf4f702b7beb
treedd2265269c0a7c1a3f79a1a1a27ada51e3c1a4c7
parent38a62779ae8e7a3b5fcf0ed3ee0bd6620809891c
[elf-fdpic] use elf_dump_thread_status() for the dumper thread as well

the only reason to have it open-coded for the first (dumper) thread is
that coredump has a couple of process-wide notes stuck right after the
first (NT_PRSTATUS) note of the first thread.  But we don't need to
make the data collection side irregular for the first thread to handle
that - it's only the logics ordering the calls of writenote() that
needs to take care of that.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/binfmt_elf_fdpic.c