Skip to content

Commit ba1d00a

Browse files
committed
fix
1 parent c7a4761 commit ba1d00a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Modules/posixmodule.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9457,8 +9457,9 @@ os_dup2_impl(PyObject *module, int fd, int fd2, int inheritable)
94579457
res = dup3(fd, fd2, O_CLOEXEC);
94589458
Py_END_ALLOW_THREADS
94599459
if (res < 0) {
9460-
if (state->dup3_works == -1)
9461-
dup3_works = (errno != ENOSYS);
9460+
if (state->dup3_works == -1) {
9461+
state->dup3_works = (errno != ENOSYS);
9462+
}
94629463
if (state->dup3_works) {
94639464
posix_error();
94649465
return -1;

0 commit comments

Comments
 (0)