James Carlson <[EMAIL PROTECTED]> wrote:

> William James writes:
> > On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote:
> > > William James writes:
> > > > > There's no race.  For async signals, system just picks one thread for
> > > > > delivery.
> > > >
> > > > This is bad. Is there no function to define that signals should be
> > > > send to all threads for async signals?
> > >
> > > You don't (and can't) send signals to threads.  You send them to
> > > processes.
> > 
> > Which of the threads in the process gets called to run the signal
> > handler for async signals?
>
> One of 'em.  It's not documented.
>
> You can control which threads can process signals, though.  Just set
> the signal mask.

Depends on whether you are inside or outside the process..
If you are inside, use pthread_kill().

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to