Skip to content
Closed
Prev Previous commit
Next Next commit
Revert erroneous change.
  • Loading branch information
markshannon committed Oct 28, 2021
commit f33f4a4e4b05a0ffeb214b71bda1c8a8b0bf3b08
3 changes: 1 addition & 2 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -6680,8 +6680,7 @@ os_fork1_impl(PyObject *module)
/*[clinic end generated code: output=0de8e67ce2a310bc input=12db02167893926e]*/
{
pid_t pid;
PyInterpreterState *interp = PyInterpreterState_Get();
if (_Py_IsMainInterpreter(interp)) {
if (PyInterpreterState_Get() != PyInterpreterState_Main()) {
PyErr_SetString(PyExc_RuntimeError, "fork not supported for subinterpreters");
return NULL;
}
Expand Down