diff --git a/sysdeps/managarm/generic/file.cpp b/sysdeps/managarm/generic/file.cpp index 35c9ef295c..bc2063971c 100644 --- a/sysdeps/managarm/generic/file.cpp +++ b/sysdeps/managarm/generic/file.cpp @@ -1316,13 +1316,15 @@ int sys_signalfd_create(const sigset_t *masks, int flags, int *fd) { } int sys_inotify_create(int flags, int *fd) { - __ensure(!(flags & ~(IN_CLOEXEC))); + __ensure(!(flags & ~(IN_CLOEXEC | IN_NONBLOCK))); SignalGuard sguard; uint32_t proto_flags = 0; if(flags & IN_CLOEXEC) proto_flags |= managarm::posix::OpenFlags::OF_CLOEXEC; + if(flags & IN_NONBLOCK) + proto_flags |= managarm::posix::OpenFlags::OF_NONBLOCK; managarm::posix::InotifyCreateRequest req(getSysdepsAllocator()); req.set_flags(proto_flags);