joyent/libuv — pull request #1008 by bnoordhuis (2013-11-25 00:57:23+00:00)
Title: unix: fix accept() EMFILE error handling

Fix a bug that was introduced in commit 3ee4d3f ("unix, windows:
return error codes directly") and add a regression test for good
measure.

Hat tip to Fedor for pointing out the issue.

Fixes #1007.

Suggested reviewer: @indutny