mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 10:35:03 +00:00
posix_select: ignore device fds
This commit is contained in:
parent
76d9bf9bf5
commit
ef1b08722f
@ -1263,10 +1263,16 @@ s32 PS4_SYSV_ABI posix_select(int nfds, fd_set* readfds, fd_set* writefds, fd_se
|
|||||||
return static_cast<int>(file->f.GetFileMapping());
|
return static_cast<int>(file->f.GetFileMapping());
|
||||||
case Core::FileSys::FileType::Socket:
|
case Core::FileSys::FileType::Socket:
|
||||||
return file->socket->Native();
|
return file->socket->Native();
|
||||||
|
case Core::FileSys::FileType::Device:
|
||||||
|
LOG_ERROR(Kernel_Fs, "device fds are not supported");
|
||||||
|
return -1;
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
}();
|
}();
|
||||||
|
if (fd == -1) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
host_to_guest.emplace(fd, i);
|
host_to_guest.emplace(fd, i);
|
||||||
|
|
||||||
max_fd = std::max(max_fd, fd);
|
max_fd = std::max(max_fd, fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user