Message143699
> 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... |
|
Date |
User |
Action |
Args |
2011-09-07 18:34:10 | neologix | set | recipients:
+ neologix, vstinner, rpointel |
2011-09-07 18:34:09 | neologix | link | issue12905 messages |
2011-09-07 18:34:09 | neologix | create | |
|