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

committed by
Max Kellermann

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