comparison libpurple/protocols/msn/directconn.c @ 23774: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 d3262085b7a7
children 8b16818f7844
comparison
equal deleted inserted replaced
23773:2a8af2ed4b49 23774:91169093449d
156 return -1; 156 return -1;
157 } 157 }
158 158
159 flags = fcntl(fd, F_GETFL); 159 flags = fcntl(fd, F_GETFL);
160 fcntl(fd, F_SETFL, flags | O_NONBLOCK); 160 fcntl(fd, F_SETFL, flags | O_NONBLOCK);
161 #ifndef _WIN32
162 fcntl(fd, F_SETFD, FD_CLOEXEC);
163 #endif
161 164
162 return fd; 165 return fd;
163 } 166 }
164 167
165 static gssize 168 static gssize