diff options
author | Brad King <brad.king@kitware.com> | 2017-04-09 09:44:28 -0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2017-05-21 16:12:26 +0200 |
commit | 317fc756a5769f5862b9ebed4c5d5d665c7f769f (patch) | |
tree | a549912e21451bd3838cd8b9a4fe337960876ab3 /docs/code/tcp-echo-server | |
parent | 2e197418c3ece95922dc3c32a5a6d4f014a3a844 (diff) | |
download | libuv-317fc756a5769f5862b9ebed4c5d5d665c7f769f.tar.gz libuv-317fc756a5769f5862b9ebed4c5d5d665c7f769f.zip |
cygwin: fix uv_pipe_connect report of ENOTSOCK
On Cygwin a `connect` to a file that is not a socket fails
with `EBADF` instead of `ENOTSOCK` even though the former is
supposed to be for a bad socket fd. Translate the error.
This fixes the `pipe_connect_to_file` to file test.
PR-URL: https://github.com/libuv/libuv/pull/1312
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Diffstat (limited to 'docs/code/tcp-echo-server')
0 files changed, 0 insertions, 0 deletions