# HG changeset patch # User Daniel Atallah # Date 1218582211 0 # Node ID 0dd3df3650177b7f0695f4ae712624dd806eeac0 # Parent e21c79681c96cf1a0cbe37ea1f47eaf08ab5d167 These fds don't need to be inherited by child processes. diff -r e21c79681c96 -r 0dd3df365017 libpurple/protocols/bonjour/bonjour_ft.c --- a/libpurple/protocols/bonjour/bonjour_ft.c Tue Aug 12 22:16:48 2008 +0000 +++ b/libpurple/protocols/bonjour/bonjour_ft.c Tue Aug 12 23:03:31 2008 +0000 @@ -633,6 +633,9 @@ flags = fcntl(acceptfd, F_GETFL); fcntl(acceptfd, F_SETFL, flags | O_NONBLOCK); +#ifndef _WIN32 + fcntl(acceptfd, F_SETFD, FD_CLOEXEC); +#endif purple_input_remove(xfer->watcher); close(source); diff -r e21c79681c96 -r 0dd3df365017 libpurple/protocols/bonjour/jabber.c --- a/libpurple/protocols/bonjour/jabber.c Tue Aug 12 22:16:48 2008 +0000 +++ b/libpurple/protocols/bonjour/jabber.c Tue Aug 12 23:03:31 2008 +0000 @@ -637,6 +637,9 @@ flags = fcntl(client_socket, F_GETFL); fcntl(client_socket, F_SETFL, flags | O_NONBLOCK); +#ifndef _WIN32 + fcntl(client_socket, F_SETFD, FD_CLOEXEC); +#endif /* Look for the buddy that has opened the conversation and fill information */ address_text = inet_ntoa(their_addr.sin_addr);