]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Py_NewInterpreter locks the GIL
authorNick Porter <nick@portercomputing.co.uk>
Thu, 10 Apr 2025 16:58:06 +0000 (17:58 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 10 Apr 2025 16:58:06 +0000 (17:58 +0100)
src/modules/rlm_python3/rlm_python3.c

index ffc1df687154639dd8e3b1ed487b3370c3041aff..4a628a6153faab133d2b7cebcd9be5499f11227a 100644 (file)
@@ -1206,6 +1206,7 @@ static int python_interpreter_init(rlm_python_t *inst, CONF_SECTION *conf)
         */
        if (!inst->cext_compat) {
                inst->sub_interpreter = Py_NewInterpreter();
+               locked = true;
        } else {
                inst->sub_interpreter = main_interpreter;
        }