Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Initial pass at new TTY js layer
Browse files Browse the repository at this point in the history
This breaks Windows.
  • Loading branch information
ry committed Sep 20, 2011
1 parent ae0dd0d commit bb88ba7
Show file tree
Hide file tree
Showing 5 changed files with 420 additions and 3 deletions.
7 changes: 4 additions & 3 deletions deps/uv/src/unix/stream.c
Expand Up @@ -529,8 +529,8 @@ int uv_shutdown(uv_shutdown_t* req, uv_stream_t* stream, uv_shutdown_cb cb) {
void uv__stream_io(EV_P_ ev_io* watcher, int revents) {
uv_stream_t* stream = watcher->data;

assert(stream->type == UV_TCP ||
stream->type == UV_NAMED_PIPE);
assert(stream->type == UV_TCP || stream->type == UV_NAMED_PIPE ||
stream->type == UV_TTY);
assert(watcher == &stream->read_watcher ||
watcher == &stream->write_watcher);
assert(!(stream->flags & UV_CLOSING));
Expand Down Expand Up @@ -738,7 +738,8 @@ int uv_write(uv_write_t* req, uv_stream_t* stream, uv_buf_t bufs[], int bufcnt,


int uv_read_start(uv_stream_t* stream, uv_alloc_cb alloc_cb, uv_read_cb read_cb) {
assert(stream->type == UV_TCP || stream->type == UV_NAMED_PIPE);
assert(stream->type == UV_TCP || stream->type == UV_NAMED_PIPE ||
stream->type == UV_TTY);

if (stream->flags & UV_CLOSING) {
uv_err_new(stream->loop, EINVAL);
Expand Down
File renamed without changes.

0 comments on commit bb88ba7

Please sign in to comment.