diff --git a/src/api/process.c b/src/api/process.c index 2e343c6c..d7bfeb72 100644 --- a/src/api/process.c +++ b/src/api/process.c @@ -100,7 +100,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