Stefan Hajnoczi e5d1fca0f2 net: take ownership of fd in socket init functions
Today net/socket.c has no consistent policy for closing the socket file
descriptor when initialization fails.  This means we leak the file
descriptor in some cases or we could also try to close it twice.

Make error paths consistent by taking ownership of the file descriptor
and closing it on error.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2011-12-12 17:06:21 -06:00
2011-12-06 11:40:00 -02:00
2011-12-06 11:40:00 -02:00
2011-12-02 10:50:57 +00:00
2011-12-02 10:50:57 +00:00
2011-12-02 10:50:57 +00:00
2011-12-02 10:50:57 +00:00
2011-12-06 11:40:01 -02:00
2011-12-06 11:40:01 -02:00
2011-12-06 11:40:00 -02:00
2011-12-02 10:50:57 +00:00
2011-12-02 10:50:57 +00:00
2011-12-06 11:40:01 -02:00
2011-12-05 14:51:38 +01:00
2011-12-02 10:50:57 +00:00
2011-12-10 17:05:48 +00:00
2011-11-19 11:22:24 +00:00
2011-12-06 11:40:01 -02:00
2011-12-06 11:40:01 -02:00
2011-12-02 10:50:57 +00:00
2011-12-02 10:50:57 +00:00
2011-12-02 10:50:57 +00:00
2011-12-02 10:50:56 +00:00
2011-12-06 11:40:00 -02:00
2011-12-06 11:40:01 -02:00
2011-12-06 11:40:01 -02:00
2011-12-06 11:40:01 -02:00
2011-12-02 10:50:57 +00:00
2011-12-06 11:40:01 -02:00
2011-12-06 11:40:01 -02:00
2011-12-02 10:50:57 +00:00
2011-11-21 14:58:48 -06:00
2011-12-06 11:40:01 -02:00
2011-12-11 17:50:43 -06:00
2011-12-05 14:51:38 +01:00
2011-12-02 10:50:57 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%