SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,21 @@
Index: src/python.c
--- src/python.c.orig
+++ src/python.c
@@ -1141,7 +1141,7 @@ static void *cpy_interactive(void *pipefd) {
#else
PyOS_AfterFork_Child();
#endif
- PyEval_InitThreads();
+ Py_Initialize();
close(*(int *)pipefd);
PyRun_InteractiveLoop(stdin, "<stdin>");
PyOS_setsig(SIGINT, cur_sig);
@@ -1178,7 +1178,7 @@ static int cpy_init(void) {
;
(void)close(pipefd[0]);
} else {
- PyEval_InitThreads();
+ Py_Initialize();
state = PyEval_SaveThread();
}
CPY_LOCK_THREADS