Mercurial > pidgin
diff libpurple/protocols/bonjour/jabber.c @ 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 | a9db0aec7e59 |
children | 48da97d84886 |
line wrap: on
line diff
--- 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);