mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 06:28:00 +02:00
Restore the close_on_exec flag on windows.
This commit is contained in:
parent
75ef1d2ed4
commit
fc276c340e
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue