Commit e8f8d0f
committed
pull PyCapsule_New() into the PYLOCK() section in poll_func()
If we call PyCapsule_New() from a thread created by libfuse before
ensuring the python interpreter is initialized, the thread state will be
NULL and the program will crash with SEGFAULT.
As suggested by David Lechner: pull the call to PyCapsule_New() into the
PYLOCK() section and open-code the rest of what was previously in the
PROLOGUE() macro.
Closes: #821 parent b330bcc commit e8f8d0f
1 file changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1272 | 1272 | | |
1273 | 1273 | | |
1274 | 1274 | | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
1275 | 1279 | | |
1276 | 1280 | | |
1277 | 1281 | | |
1278 | 1282 | | |
1279 | 1283 | | |
1280 | | - | |
| 1284 | + | |
1281 | 1285 | | |
1282 | | - | |
| 1286 | + | |
1283 | 1287 | | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
1284 | 1300 | | |
1285 | 1301 | | |
1286 | 1302 | | |
| |||
0 commit comments