Charles-François Natali <neolo...@free.fr> added the comment:

> Using SA_RESTART, read() is not interrupted. But if the program is linked to 
> pthread, read() is always interrupted: with sa_flags=0 or sa_flags=SA_RESTART.
>

Ouch...

>> But OpenBSD's pthread implementation has severe limitations/bugs.
>
> rthread doc contains:
>
> "Future work:
>
> Quite simply, signal handling is one the most complicated aspects of threads 
> to get right. (...)"
>

This paper dates back to 2005, I was hoping they would have solved
this by now...

As for the original problem, IIUC you don't reproduce it with your C
test code...
It might be due to a subtle difference in the way Python is built
(like POSIX_SOURCE...), but it's hard to tell...

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12905>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to