Commit 26ee2c9
Bartosz Golaszewski
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 92bf471 commit 26ee2c9
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 | | |
| |||
1282 | 1286 | | |
1283 | 1287 | | |
1284 | 1288 | | |
1285 | | - | |
| 1289 | + | |
1286 | 1290 | | |
1287 | | - | |
| 1291 | + | |
1288 | 1292 | | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
1289 | 1305 | | |
1290 | 1306 | | |
1291 | 1307 | | |
| |||
0 commit comments