io/UniqueFileDescriptor: use AdoptTag in the constructors that adopt ownership

This commit is contained in:
Max Kellermann
2025-01-23 16:47:13 +01:00
committed by Max Kellermann
parent 765a6a2f20
commit 35dc1fc589
9 changed files with 115 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ CreateInotify()
if (fd < 0)
throw MakeErrno("inotify_init1() failed");
return UniqueFileDescriptor(fd);
return UniqueFileDescriptor(AdoptTag{}, fd);
}
InotifyEvent::InotifyEvent(EventLoop &event_loop, InotifyHandler &_handler)