signalling remote threads

Daniel Eischen deischen at freebsd.org
Fri Mar 9 17:18:23 UTC 2007


On Fri, 9 Mar 2007, Tijl Coosemans wrote:

> Is it somehow possible to send a signal to a specific thread in
> another process similar to the linux tkill and tgkill syscalls?
>
> I've seen the thr_kill call that takes an lwpid as argument, but it
> can't send a signal to another process can it?

No, it is not possible and it shouldn't be possible
as it's not portable.  From outside the process, you
can send a signal to another _process_ (which will
be delivered to one of its threads depending on
their signal masks), but not to a specific thread
in another process.

-- 
DE


More information about the freebsd-threads mailing list