sysdeps/managarm: Handle ENOENT from INOTIFY_ADD
@@ -1470,10 +1470,14 @@ int sys_inotify_add_watch(int ifd, const char *path, uint32_t mask, int *wd) {
managarm::posix::SvrResponse<MemoryAllocator> resp(getSysdepsAllocator());
resp.ParseFromArray(recv_resp->data, recv_resp->length);
+ if(resp.error() == managarm::posix::Errors::FILE_NOT_FOUND) {
+ return ENOENT;
+ }else{
__ensure(resp.error() == managarm::posix::Errors::SUCCESS);
*wd = resp.wd();
return 0;
}
+}
int sys_eventfd_create(unsigned int initval, int flags, int *fd) {
SignalGuard sguard;
