Author neologix
Recipients alex, haypo, jcea, meador.inge, neologix, pitrou, rbcollins
Date 2012-01-05.17:56:59
SpamBayes Score 9.64229e-14
Marked as misclassified No
Message-id <>
In-reply-to <1325674262.3458.3.camel@localhost.localdomain>
> Hmm, but that would break single-threaded programs which expect their
> select() (or other) to return EINTR when a signal is received (which is
> a perfectly valid expectation in that case).

Yes, that's why I said "that"s another story" ;-)
EINTR is really a pain, and relying on it to return from a syscall
upon signal reception is a bad idea (certain OS restart syscalls by
default - not select() though - and if the signal is received before
you call the syscall, you'll deadlock). This would IMHO be the best
way to go, but I know we can't reasonably change this now.

> I don't know if that's still useful to build Python without threads. I
> would expect most platforms to have a compatible threads implementation
> (and Python probably can't run on very small embedded platforms).
> Perhaps you can ask on python-dev.

There are another problems, for example it's very well known that
signals and threads don't mix well (so for example you'd have to block
all signals before spawning the new thread, and reenable them
I'm not sure it's worth the extra complication. I can still try to
write a quick patch to see if it gets somewhere (and doesn't break
test_threading and test_signals).

The first and most simple thing we could do would be to nuke the
Python version (and also the loggin hack at the same time): does that
sound reasonable ?
Date User Action Args
2012-01-05 17:57:00neologixsetrecipients: + neologix, jcea, pitrou, haypo, rbcollins, alex, meador.inge
2012-01-05 17:56:59neologixlinkissue13697 messages
2012-01-05 17:56:59neologixcreate