pidgin: 7daf4653: Don't leak the fd to child processes.
datallah at pidgin.im
datallah at pidgin.im
Tue Aug 12 19:25:54 EDT 2008
-----------------------------------------------------------------
Revision: 7daf4653c3d8ee31a374695cc1c18e8a82d64b0a
Ancestor: 8de944912416e9ae69c8bf505a787ceb54256274
Author: datallah at pidgin.im
Date: 2008-08-12T23:16:58
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/7daf4653c3d8ee31a374695cc1c18e8a82d64b0a
Modified files:
libpurple/protocols/oscar/peer.c
ChangeLog:
Don't leak the fd to child processes.
-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/peer.c 50b5530d807fd4d80bcc3b9fa66335ae1a3f8643
+++ libpurple/protocols/oscar/peer.c de36aea0801ce5d0b1fac01c7148fd76a2462279
@@ -636,6 +636,10 @@ peer_connection_listen_cb(gpointer data,
flags = fcntl(conn->fd, F_GETFL);
fcntl(conn->fd, F_SETFL, flags | O_NONBLOCK);
+#ifndef _WIN32
+ fcntl(conn->fd, F_SETFD, FD_CLOEXEC);
+#endif
+
purple_input_remove(conn->watcher_incoming);
peer_connection_finalize_connection(conn);
More information about the Commits
mailing list