]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux(4): Refactor signal send methods.
authorDmitry Chagin <dchagin@FreeBSD.org>
Mon, 25 Apr 2022 07:22:51 +0000 (10:22 +0300)
committerDmitry Chagin <dchagin@FreeBSD.org>
Mon, 25 Apr 2022 07:22:51 +0000 (10:22 +0300)
commit6201a50d0d6d98633dba3db12dea2dfe95295e0e
tree3319a63e0869c74adf001312fc790e9a8e5908bc
parentfe894a370556e5b173a8893cdcde6323ff79cc57
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
sys/compat/linux/linux_signal.c