Date: Fri, 9 Mar 2007 21:00:08 +0100 From: Tijl Coosemans <tijl@ulyssis.org> To: freebsd-threads@freebsd.org Cc: Daniel Eischen <deischen@freebsd.org>, gerald@freebsd.org Subject: Re: signalling remote threads Message-ID: <200703092100.12199.tijl@ulyssis.org> In-Reply-To: <Pine.GSO.4.64.0703091215070.21532@sea.ntplx.net> References: <200703091515.27133.tijl@ulyssis.org> <Pine.GSO.4.64.0703091215070.21532@sea.ntplx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 09 March 2007 18:18, Daniel Eischen wrote: > 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. Ok, thanks. The reason I asked is because Wine uses this to let the wineserver process (windows kernel) send signals to threads in a wine process. The only solution I see then is to have some sort of service thread in the receiving process to dispatch the signal. That would be a portable solution, but lots of work...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703092100.12199.tijl>