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

@@ -252,7 +252,7 @@ SocketDescriptor::GetPeerPidfd() const noexcept
if (GetOption(SOL_SOCKET, SO_PEERPIDFD, &pidfd, sizeof(pidfd)) < sizeof(pidfd))
return {};
return UniqueFileDescriptor{pidfd};
return UniqueFileDescriptor{AdoptTag{}, pidfd};
}
#endif // __linux__