libuv/src
Bartosz Sosnowski 84144036ce win,tty: fix uv_tty_set_mode race conditions
Additional synchronization is needed to ensure that the program
cannot modify the screen state while a line read is getting cancelled.

Also, we need to stop any pending reads *before* calling SetConsoleMode,
or a call to ReadConsole could start while the console is still in raw
mode.

Credit: @orangemocha - Alexis Campailla <orangemocha@nodejs.org>
Fixes: https://github.com/nodejs/node/issues/7837
PR-URL: https://github.com/libuv/libuv/pull/1054
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2016-09-18 10:15:05 +02:00
..
unix unix: don't use alphasort in uv_fs_scandir() 2016-09-12 15:50:58 +02:00
win win,tty: fix uv_tty_set_mode race conditions 2016-09-18 10:15:05 +02:00
fs-poll.c unix, win: count null byte on UV_ENOBUFS 2016-03-03 09:23:10 +01:00
heap-inl.h heap: fix heap_remove() 2014-05-23 20:04:42 +04:00
inet.c win: use the MSVC provided snprintf where possible 2015-09-29 09:01:33 +02:00
queue.h unix: use QUEUE_MOVE when iterating over lists 2015-10-08 21:47:43 +02:00
threadpool.c src: replace QUEUE_SPLIT with QUEUE_MOVE 2015-10-08 21:46:48 +02:00
uv-common.c unix: preserve loop->data across loop init/done 2016-07-30 10:49:19 +02:00
uv-common.h win: use the MSVC provided snprintf where possible 2015-09-29 09:01:33 +02:00
version.c core: add UV_VERSION_HEX macro 2015-06-29 23:08:41 +02:00