lib/nfs/Connection: remove EnableCloseOnExec() call

SOCK_CLOEXEC has been added to libnfs version 2, and since we require
at least version 4, we can safely remove this call.
This commit is contained in:
Max Kellermann 2024-05-14 19:50:44 +02:00
parent 416f65fe01
commit 5cffd4f673

View File

@ -432,7 +432,6 @@ NfsConnection::ScheduleSocket() noexcept
if (!_fd.IsDefined()) if (!_fd.IsDefined())
return; return;
_fd.EnableCloseOnExec();
socket_event.Open(_fd); socket_event.Open(_fd);
} }