summaryrefslogtreecommitdiffstats
path: root/mutt_socket.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2005-09-08 14:50:49 +0000
committerBrendan Cully <brendan@kublai.com>2005-09-08 14:50:49 +0000
commitd0e84eba5a03259042758693d9e6349c0e200c40 (patch)
tree060b61cded2cf03c3e9b6914e5bb03ecc66aa418 /mutt_socket.c
parent43fc5d8905956e0681696b032ff5f9ee661b7135 (diff)
Set CLOEXEC on sockets in IPv4 code path like we do in IPv6.
Diffstat (limited to 'mutt_socket.c')
-rw-r--r--mutt_socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mutt_socket.c b/mutt_socket.c
index bc859f5d..4b33d3ec 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;
}