Skip to content

Commit a0fc743

Browse files
Update Modules/posixmodule.c
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent 8d832ac commit a0fc743

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/posixmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8126,8 +8126,9 @@ os_fork1_impl(PyObject *module)
81268126
/* parent: release the import lock. */
81278127
PyOS_AfterFork_Parent();
81288128
// After PyOS_AfterFork_Parent() starts the world to avoid deadlock.
8129-
if (warn_about_fork_with_threads("fork1") < 0)
8129+
if (warn_about_fork_with_threads("fork1") < 0) {
81308130
return NULL;
8131+
}
81318132
}
81328133
if (pid == -1) {
81338134
errno = saved_errno;

0 commit comments

Comments
 (0)