Mercurial > pidgin
diff libpurple/network.c @ 23712:91169093449d
More leaks of fds to client processes.
| author | Daniel Atallah <daniel.atallah@gmail.com> |
|---|---|
| date | Tue, 12 Aug 2008 23:35:02 +0000 |
| parents | 313b87adb730 |
| children | 785db7300ef2 |
line wrap: on
line diff
--- a/libpurple/network.c Tue Aug 12 23:22:47 2008 +0000 +++ b/libpurple/network.c Tue Aug 12 23:35:02 2008 +0000 @@ -351,7 +351,9 @@ } flags = fcntl(listenfd, F_GETFL); fcntl(listenfd, F_SETFL, flags | O_NONBLOCK); - +#ifndef _WIN32 + fcntl(listenfd, F_SETFD, FD_CLOEXEC); +#endif actual_port = purple_network_get_port_from_fd(listenfd); purple_debug_info("network", "Listening on port: %hu\n", actual_port);
