diff options
author | Alexis Campailla <alexis@janeasystems.com> | 2013-12-17 04:26:28 -0800 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2014-01-09 18:29:18 +0100 |
commit | c0716b3d9f89e3557a482ce499e7abc8db686418 (patch) | |
tree | a87a8dfbc308c96636463f4ad16d10a7fc963a91 /test/test-tcp-bind6-error.c | |
parent | 4ce9c39dd86d80ef00476fd00bedb9d56172a86d (diff) | |
download | libuv-c0716b3d9f89e3557a482ce499e7abc8db686418.tar.gz libuv-c0716b3d9f89e3557a482ce499e7abc8db686418.zip |
windows: improved handling of invalid FDs
If passed and invalid FD, _get_osfhandle() sets an error code
through errno, not _doserrno. Hence we need to use
SET_REQ_WIN32_ERROR insted of SET_REQ_RESULT.
In debug builds, _get_osfhandle() also raises a superfluous
assert. I implemented a wrapper that disables all asserts
around the call to _get_osfhandle().
This fixes node.js unit tests test-fs-read-stream.js and
test-listen-fd-ebadf.js.
Diffstat (limited to 'test/test-tcp-bind6-error.c')
0 files changed, 0 insertions, 0 deletions