Mercurial > pidgin.yaz
changeset 10172:374d63326461
[gaim-migrate @ 11275]
Whine33
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Fri, 12 Nov 2004 02:47:10 +0000 |
parents | 829a569993e0 |
children | c754d26fe85e |
files | src/proxy.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/proxy.c Thu Nov 11 19:00:33 2004 +0000 +++ b/src/proxy.c Fri Nov 12 02:47:10 2004 +0000 @@ -765,7 +765,9 @@ return -1; } fcntl(fd, F_SETFL, O_NONBLOCK); +#ifndef _WIN32 fcntl(fd, F_SETFD, FD_CLOEXEC); +#endif if (connect(fd, (struct sockaddr *)addr, addrlen) < 0) { if ((errno == EINPROGRESS) || (errno == EINTR)) { @@ -958,7 +960,9 @@ } fcntl(fd, F_SETFL, O_NONBLOCK); +#ifndef _WIN32 fcntl(fd, F_SETFD, FD_CLOEXEC); +#endif if (connect(fd, addr, addrlen) < 0) { if ((errno == EINPROGRESS) || (errno == EINTR)) { @@ -1090,7 +1094,9 @@ return -1; fcntl(fd, F_SETFL, O_NONBLOCK); +#ifndef _WIN32 fcntl(fd, F_SETFD, FD_CLOEXEC); +#endif if (connect(fd, addr, addrlen) < 0) { if ((errno == EINPROGRESS) || (errno == EINTR)) { @@ -1344,7 +1350,9 @@ return -1; fcntl(fd, F_SETFL, O_NONBLOCK); +#ifndef _WIN32 fcntl(fd, F_SETFD, FD_CLOEXEC); +#endif if (connect(fd, addr, addrlen) < 0) { if ((errno == EINPROGRESS) || (errno == EINTR)) {