Re: [Qemu-devel] [PATCH v2] Don't leak file descriptors

2009-12-02 Thread Kevin Wolf
Am 01.12.2009 16:55, schrieb Alexander Graf: Kevin Wolf wrote: 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 kw...@redhat.com On Anthony's staging tree:

[Qemu-devel] [PATCH v2] Don't leak file descriptors

2009-12-02 Thread Kevin Wolf
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 kw...@redhat.com --- v2: - The existence of SOCK_CLOEXEC doesn't mean that accept4 exists. Added a check for it in

Re: [Qemu-devel] [PATCH v2] Don't leak file descriptors

2009-12-01 Thread Alexander Graf
Kevin Wolf wrote: 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 kw...@redhat.com --- block/raw-posix.c |2 +- gdbstub.c |6 +++

[Qemu-devel] [PATCH v2] Don't leak file descriptors

2009-11-16 Thread Kevin Wolf
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 kw...@redhat.com --- block/raw-posix.c |2 +- gdbstub.c |6 +++ kvm-all.c |2 +-