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