# HG changeset patch # User Daniel Atallah # Date 1218583018 0 # Node ID 239ee71307c6df889ebc8805c696685f8c89c470 # Parent 7f401e99f9d93228fc0a90850231e328a956c8ae Don't leak the fd to child processes. diff -r 7f401e99f9d9 -r 239ee71307c6 libpurple/protocols/oscar/peer.c --- a/libpurple/protocols/oscar/peer.c Tue Aug 12 23:09:05 2008 +0000 +++ b/libpurple/protocols/oscar/peer.c Tue Aug 12 23:16:58 2008 +0000 @@ -636,6 +636,10 @@ 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);