Message116284
It seems we need to clarify the return value of PyThread_create_key. The patch returns 0 in case of failure, which is clearly wrong as 0 is also a valid key.
I think it's safe to return -1: TlsAlloc returns TLS_OUT_OF_INDEXES, which is 0xFFFFFFFF, i.e. -1 on a 32-bit system. |
|
| Date |
User |
Action |
Args |
| 2010-09-13 06:47:29 | loewis | set | recipients:
+ loewis, amaury.forgeotdarc, pitrou, kristjan.jonsson, giampaolo.rodola |
| 2010-09-13 06:47:29 | loewis | set | messageid: <[email protected]> |
| 2010-09-13 06:47:24 | loewis | link | issue9786 messages |
| 2010-09-13 06:47:24 | loewis | create | |
|