Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: return UV_UNKNOWN_HANDLE when read2 doesn't recv one
Browse files Browse the repository at this point in the history
unix passes ipc test on this comment.
  • Loading branch information
ry committed Oct 4, 2011
1 parent cbca726 commit 0d20e0e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/unix/stream.c
Expand Up @@ -593,7 +593,12 @@ static void uv__read(uv_stream_t* stream) {
}
}

stream->read2_cb((uv_pipe_t*)stream, nread, buf, UV_TCP);

if (stream->accepted_fd >= 0) {
stream->read2_cb((uv_pipe_t*)stream, nread, buf, UV_TCP);
} else {
stream->read2_cb((uv_pipe_t*)stream, nread, buf, UV_UNKNOWN_HANDLE);
}
}
}
}
Expand Down

0 comments on commit 0d20e0e

Please sign in to comment.