From 5cffd4f673a4fa54caa5e219cbb0e21ca00c15e4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 14 May 2024 19:50:44 +0200 Subject: [PATCH] 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. --- src/lib/nfs/Connection.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/nfs/Connection.cxx b/src/lib/nfs/Connection.cxx index d9f3f7519..949ba7bf3 100644 --- a/src/lib/nfs/Connection.cxx +++ b/src/lib/nfs/Connection.cxx @@ -432,7 +432,6 @@ NfsConnection::ScheduleSocket() noexcept if (!_fd.IsDefined()) return; - _fd.EnableCloseOnExec(); socket_event.Open(_fd); }