From: Brendan Cully Date: Thu, 8 Sep 2005 14:50:49 +0000 (+0000) Subject: Set CLOEXEC on sockets in IPv4 code path like we do in IPv6. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb18027db9052c87f1b84cfabf0f539eaf68180b;p=neomutt Set CLOEXEC on sockets in IPv4 code path like we do in IPv6. --- diff --git a/mutt_socket.c b/mutt_socket.c index bc859f5d6..4b33d3ec7 100644 --- a/mutt_socket.c +++ b/mutt_socket.c @@ -514,6 +514,7 @@ int raw_socket_open (CONNECTION* conn) { if ((rc = socket_connect (fd, (struct sockaddr*) &sin)) == 0) { + fcntl (fd, F_SETFD, FD_CLOEXEC); conn->fd = fd; break; }