]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Restore the close_on_exec flag on windows.
authorRomain Pokrzywka <romain@kdab.com>
Mon, 4 Oct 2010 10:33:36 +0000 (12:33 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Fri, 29 Oct 2010 09:24:38 +0000 (11:24 +0200)
dbus/dbus-sysdeps-win.c

index ae461204f7d94ce8469da4ab2965f3ab17f5806a..ece106907196b877c0bfb48a9cc6895b628927cc 100644 (file)
@@ -1359,6 +1359,8 @@ _dbus_connect_tcp_socket_with_nonce (const char     *host,
         }
     }
 
+  _dbus_fd_set_close_on_exec (fd);
+
   if (!_dbus_set_fd_nonblocking (fd, error))
     {
       closesocket (fd);
@@ -1551,6 +1553,7 @@ _dbus_listen_tcp_socket (const char     *host,
 
   for (i = 0 ; i < nlisten_fd ; i++)
     {
+      _dbus_fd_set_close_on_exec (listen_fd[i]);
       if (!_dbus_set_fd_nonblocking (listen_fd[i], error))
         {
           goto failed;