Less invasive fix for EventFd blocking operations (#3394)

This commit is contained in:
gdkchan 2022-06-12 04:29:12 -03:00 committed by GitHub
parent de7d9373c3
commit dd5143586c
3 changed files with 7 additions and 26 deletions

View file

@ -18,6 +18,11 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd
public EventFileDescriptor(ulong value, EventFdFlags flags)
{
// FIXME: We should support blocking operations.
// Right now they can't be supported because it would cause the
// service to lock up as we only have one thread processing requests.
flags |= EventFdFlags.NonBlocking;
_value = value;
_flags = flags;