Mercurial > pidgin
diff libpurple/protocols/msnp9/directconn.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 | 3225c99785b8 |
children | da33da2e1a1e |
line wrap: on
line diff
--- a/libpurple/protocols/msnp9/directconn.c Tue Aug 12 23:22:47 2008 +0000 +++ b/libpurple/protocols/msnp9/directconn.c Tue Aug 12 23:35:02 2008 +0000 @@ -159,6 +159,9 @@ flags = fcntl(fd, F_GETFL); fcntl(fd, F_SETFL, flags | O_NONBLOCK); +#ifndef _WIN32 + fcntl(fd, F_SETFD, FD_CLOEXEC); +#endif return fd; }