-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removal of private C-API breaks uwsgi compilation #121758
Comments
Why calling _PyImport_AcquireLock() in uwsgi_python_pre_uwsgi_fork(), instead of PyOS_BeforeFork()? By the way, I'm not sure that it's safe to call PyOS_AfterFork_Child() in uwsgi_python_post_uwsgi_fork() without calling PyOS_BeforeFork(). |
I think the code predates PyOS_BeforeFork by years 😅 and we didn't give it enough attention until it broke.
Thanks |
Can you try PyOS_BeforeFork() and tell me how it goes? |
Opened a PR here, CI passes but haven't tested it unbit/uwsgi#2655 |
@xrmx: Since there is now a pending uwsgi PR, is it still useful to have a Python issue? Or can we close this issue? |
Closing, thanks @vstinner ! |
Bug report
Bug description:
Hello,
while trying to port uwsgi to 3.13 got this:
Is there any other available API we can use?
I can make it compile by importing the internal header but does not look like a proper solution:
WIP branch is here https://github.com/unbit/uwsgi/tree/wip-py-313
cc @vstinner
CPython versions tested on:
3.13
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: