[Python-Dev] Where to put the interrupt module?

Kevin Jacobs jacobs@penguin.theopalgroup.com
Fri, 13 Jun 2003 08:52:44 -0400 (EDT)


On Fri, 13 Jun 2003, Guido van Rossum wrote:
> [Kevin J]
> > That chunk of code is very problematic.  Some platforms/threading libraries
> > will deliver a SIGINT to all threads, which can abort many system calls that
> > are not trivially restarted/restartable.
> 
> While I was worried about this when writing the original code (that's
> the only way to explain some of the things it does), I'm not sure if
> we really have to worry about such platforms any more; I certainly
> have never heard a report of such behavior.  On Unix and Unixish
> systems, pthreads rule.  Windows doesn't have real signals.  Mac OS is
> now also Unix.  PalmOS doesn't have threads.  What other platforms are
> relevant?

The thread_pthreads already masks signals to newly created threads.  I have
patches to add signal masking to solaris and pth threads.  I'm not sure how
much either are used anymore, though.

-Kevin

-- 
--
Kevin Jacobs
The OPAL Group - Enterprise Systems Architect
Voice: (216) 986-0710 x 19         E-mail: jacobs@theopalgroup.com
Fax:   (216) 986-0714              WWW:    http://www.theopalgroup.com