Don't leak file descriptors
authorKevin Wolf <kwolf@redhat.com>
Wed, 2 Dec 2009 11:24:42 +0000 (12:24 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 17:45:50 +0000 (11:45 -0600)
commit40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4
tree98d560a0de229f27a66f637cfcadbb1672e68cc3
parent12c09b8ce22d74f78ff50f95676cbe4f501752ae
Don't leak file descriptors

We're leaking file descriptors to child processes. Set FD_CLOEXEC on file
descriptors that don't need to be passed to children to stop this misbehaviour.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
20 files changed:
block/raw-posix.c
configure
gdbstub.c
kvm-all.c
migration-tcp.c
migration-unix.c
net/socket.c
osdep.c
posix-aio-compat.c
qemu-char.c
qemu-common.h
qemu-sockets.c
qemu_socket.h
slirp/misc.c
slirp/slirp.h
slirp/socket.c
slirp/tcp_subr.c
slirp/udp.c
vl.c
vnc.c