HomeFreeBSD

linux(4): Refactor signal send methods.

Description

linux(4): Refactor signal send methods.

Created a couple of helpers to send signals to the specific thread or to
the whole process. Use helpers in the corresponding syscalls.
This fixes the confusion where a signal destined for a whole process
was sent to a specific thread and vice versa.
There is an exclusion for the linux_kill() syscall that takes a pid
argument and should send a signal to the whole process, but I know
at least one example where kill() takes tid.

MFC after: 2 weeks

Details

Provenance
dchaginAuthored on Apr 25 2022, 7:22 AM
Parents
rGfe894a370556: linux(4): Check that the thread tid in the thread group pid in linux_tdfind().
Branches
Unknown
Tags
Unknown