diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2015-03-11 16:05:56 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2015-03-11 16:45:51 +0100 |
commit | fc9e66e555f8520b14a2f25335f4e03b349f70a3 (patch) | |
tree | 2fbe209ba6d704f24a88a236ed6225e1c72a8473 /docs/src | |
parent | 1df46fe47869244db44e90d2ced5685a4c921775 (diff) | |
download | libuv-fc9e66e555f8520b14a2f25335f4e03b349f70a3.tar.gz libuv-fc9e66e555f8520b14a2f25335f4e03b349f70a3.zip |
unix: reject non-tty fds in uv_tty_init()
Reject file descriptors that correspond to regular files or char/block
devices. Such file descriptors are incompatible with epoll and trigger
a run-time assert.
Fixes: https://github.com/libuv/libuv/issues/255
PR-URL: https://github.com/libuv/libuv/pull/259
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/tty.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/src/tty.rst b/docs/src/tty.rst index c7845429..18f34ef4 100644 --- a/docs/src/tty.rst +++ b/docs/src/tty.rst @@ -66,6 +66,10 @@ API If opening ``/dev/tty`` fails, libuv falls back to blocking writes for non-readable TTY streams. + .. versionchanged:: 1.5.0: trying to initialize a TTY stream with a file + descriptor that refers to a file returns `UV_EINVAL` + on UNIX. + .. c:function:: int uv_tty_set_mode(uv_tty_t*, uv_tty_mode_t mode) .. versionchanged:: 1.2.0: the mode is specified as a |