William James writes:
> > One of 'em.  It's not documented.
> 
> Only one of them or any number of them?

Just one will actually go into the signal handler.

> > You can control which threads can process signals, though.  Just set
> > the signal mask.
> 
> You mean I can turn off signal handling in all threads except the main
> one

Yes.

> which then sends the signal to all others?

There are at least two problems with that latter concept.  First, as
previously explained, there's no way to send a signal to a thread.
You can send it to a _process_, but not to a _thread_.  Threads don't
have separate PIDs.  (At least not on any POSIX-conforming system.)

Secondly, if you've masked off signals in those other threads, then
what possible purpose could be served by deliberately sending them
that signal?  That wouldn't do anything.

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to