From ca69eab36ac3704159df1e6c567e036381739c85 Mon Sep 17 00:00:00 2001 From: Fantix King Date: Mon, 8 Feb 2021 18:18:47 -0500 Subject: [PATCH] WIP --- uvloop/handles/process.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uvloop/handles/process.pyx b/uvloop/handles/process.pyx index 14931ef5..261aa1f5 100644 --- a/uvloop/handles/process.pyx +++ b/uvloop/handles/process.pyx @@ -452,7 +452,7 @@ cdef class UVProcessTransport(UVProcess): else: io[0] = self._file_redirect_stdio(_stdin) else: - io[0] = self._file_redirect_stdio(sys.stdin.fileno()) + io[0] = self._file_redirect_stdio(0) if _stdout is not None: if _stdout == subprocess_PIPE: @@ -480,7 +480,7 @@ cdef class UVProcessTransport(UVProcess): else: io[1] = self._file_redirect_stdio(_stdout) else: - io[1] = self._file_redirect_stdio(sys.stdout.fileno()) + io[1] = self._file_redirect_stdio(1) if _stderr is not None: if _stderr == subprocess_PIPE: @@ -508,7 +508,7 @@ cdef class UVProcessTransport(UVProcess): else: io[2] = self._file_redirect_stdio(_stderr) else: - io[2] = self._file_redirect_stdio(sys.stderr.fileno()) + io[2] = self._file_redirect_stdio(2) assert len(io) == 3 for idx in range(3):