windows/tty: never report error after forcibly aborting line-buffered read
This commit is contained in:
parent
cd69ea9105
commit
dbe681ed2f
@ -688,7 +688,7 @@ void uv_process_tty_read_line_req(uv_loop_t* loop, uv_tty_t* handle,
|
|||||||
if (!REQ_SUCCESS(req)) {
|
if (!REQ_SUCCESS(req)) {
|
||||||
/* Read was not successful */
|
/* Read was not successful */
|
||||||
if ((handle->flags & UV_HANDLE_READING) &&
|
if ((handle->flags & UV_HANDLE_READING) &&
|
||||||
!(handle->flags & UV_HANDLE_TTY_RAW)) {
|
handle->read_line_handle != NULL) {
|
||||||
/* Real error */
|
/* Real error */
|
||||||
handle->flags &= ~UV_HANDLE_READING;
|
handle->flags &= ~UV_HANDLE_READING;
|
||||||
uv__set_sys_error(loop, GET_REQ_ERROR(req));
|
uv__set_sys_error(loop, GET_REQ_ERROR(req));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user