285a286,292 > /* Ensure the read handle to the pipe for STDOUT is not inherited. */ > if ( ! SetHandleInformation(hRead, HANDLE_FLAG_INHERIT, 0) ) > { > zbx_snprintf(error, max_error_len, "Unable to SetHandleInformation: %s", strerror_from_system(GetLastError())); > } > > 351d357 < CloseHandle(pi.hProcess); 372a379,380 > CloseHandle(pi.hProcess); >