Skip to content

Commit

Permalink
[rpcsx-os] ignore socket error
Browse files Browse the repository at this point in the history
  • Loading branch information
DHrpcs3 committed Oct 30, 2023
1 parent 95f1a6f commit 6a2c97f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions orbis-kernel/src/sys/sys_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ orbis::SysResult orbis::sys_kevent(Thread *thread, sint fd,
change.fflags, change.data, change.udata);

if (change.flags & kEvAdd) {
if (change.filter != kEvFiltDisplay && change.filter != kEvFiltGraphicsCore) {
std::abort();
}
// if (change.filter != kEvFiltDisplay && change.filter != kEvFiltGraphicsCore) {
// std::abort();
// }

kq->notes.push_back({
.event = change,
Expand Down
6 changes: 3 additions & 3 deletions rpcsx-os/io-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,9 @@ orbis::ErrorCode createSocket(orbis::Ref<orbis::File> *file,
orbis::kstring name, int dom, int type,
int prot) {
auto fd = ::socket(dom, type, prot);
if (fd < 0) {
return convertErrno();
}
// if (fd < 0) {
// return convertErrno();
// }

auto s = orbis::knew<SocketFile>();
s->name = std::move(name);
Expand Down

0 comments on commit 6a2c97f

Please sign in to comment.