io/UniqueFileDescriptor: use AdoptTag in the constructors that adopt ownership
This commit is contained in:

committed by
Max Kellermann

parent
765a6a2f20
commit
35dc1fc589
@@ -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)
|
||||
|
Reference in New Issue
Block a user