Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
fantix committed Feb 8, 2021
1 parent b7048b9 commit ca69eab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uvloop/handles/process.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit ca69eab

Please sign in to comment.