libpurple/protocols/msnp9/servconn.c

changeset 24044
3fd74bed3968
parent 23838
4e6e74a4683b
--- a/libpurple/protocols/msnp9/servconn.c	Tue Aug 12 23:22:47 2008 +0000
+++ b/libpurple/protocols/msnp9/servconn.c	Tue Aug 12 23:35:02 2008 +0000
@@ -547,6 +547,9 @@
 
 	flags = fcntl(fd, F_GETFL);
 	fcntl(fd, F_SETFL, flags | O_NONBLOCK);
+#ifndef _WIN32
+	fcntl(fd, F_SETFD, FD_CLOEXEC);
+#endif
 
 	return fd;
 }

mercurial