unix: handle readdir errors in uv__fs_after()

This commit is contained in:
Ben Noordhuis 2011-09-14 17:58:35 +02:00
parent 337ff16526
commit 76216d8057

View File

@ -116,6 +116,9 @@ static int uv__fs_after(eio_req* eio) {
switch (req->fs_type) {
case UV_FS_READDIR:
if (req->eio->result == -1)
break; /* opendir() or readdir() operation failed. */
/*
* XXX This is pretty bad.
* We alloc and copy the large null terminated string list from libeio.