Mercurial > pidgin
changeset 23708:0dd3df365017
These fds don't need to be inherited by child processes.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 12 Aug 2008 23:03:31 +0000 |
parents | e21c79681c96 |
children | 7f401e99f9d9 |
files | libpurple/protocols/bonjour/bonjour_ft.c libpurple/protocols/bonjour/jabber.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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);