]> granicus.if.org Git - neomutt/commitdiff
Set CLOEXEC on sockets in IPv4 code path like we do in IPv6.
authorBrendan Cully <brendan@kublai.com>
Thu, 8 Sep 2005 14:50:49 +0000 (14:50 +0000)
committerBrendan Cully <brendan@kublai.com>
Thu, 8 Sep 2005 14:50:49 +0000 (14:50 +0000)
mutt_socket.c

index bc859f5d6be352271dde1ebf83d4fc9701e450e1..4b33d3ec76e47a28b4824373910fe31cfd4798de 100644 (file)
@@ -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;
       }