Avoid self._errpipe_write double close (#466)

Fixes #414
This commit is contained in:
Thomas Grainger 2022-07-17 16:22:14 +01:00 committed by GitHub
parent 31ba48ca92
commit 72140d7e5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ cdef class UVProcess(UVHandle):
self._finish_init()
os_close(self._errpipe_write)
self._errpipe_write = -1
if preexec_fn is not None:
errpipe_data = bytearray()