fix(process): check for HANDLE_INVALID (#1475)
This commit is contained in:
parent
bd93e5a4b6
commit
c0c2e7222e
|
@ -103,7 +103,7 @@ typedef enum {
|
|||
} filed_e;
|
||||
|
||||
static void close_fd(process_stream_t *handle) {
|
||||
if (*handle) {
|
||||
if (*handle && *handle != HANDLE_INVALID) {
|
||||
#ifdef _WIN32
|
||||
CloseHandle(*handle);
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue