From: Stefan Hajnoczi <stefanha@gmail.com>
To: Laszlo Ersek <lersek@redhat.com>
Cc: Zhi Yong Wu <wuzhy@cn.ibm.com>,
qemu-devel@nongnu.org,
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH 0/2] net: Make -netdev socket,listen= work
Date: Tue, 31 Jul 2012 14:04:41 +0100 [thread overview]
Message-ID: <CAJSP0QUOxPYqedQ9aepDPSjU0VtBm-q636q9OG0dKzRTojzojQ@mail.gmail.com> (raw)
In-Reply-To: <5017C453.8080800@redhat.com>
On Tue, Jul 31, 2012 at 12:41 PM, Laszlo Ersek <lersek@redhat.com> wrote:
> (in reply to
> <http://lists.gnu.org/archive/html/qemu-devel/2012-07/msg02637.html> --
> In-Reply-To set, but that may not be enough for the web archive)
>
> Looks good to me. A minor nit: 2/2 keeps the close(s->fd) call (instead
> of calling closesocket(s->fd), like in eoc handling) in
> net_socket_cleanup().
The reason I didn't change close(2) to closesocket() is because
-netdev socket,fd= can pass arbitrary file descriptors. I suspect
only real socket objects will work but we basically don't know what
the passed file descriptor is. This is the reason why I didn't feel
100% happy converting it to closesocket().
> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Thanks!
Stefan
next prev parent reply other threads:[~2012-07-31 13:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-31 11:41 [Qemu-devel] [PATCH 0/2] net: Make -netdev socket,listen= work Laszlo Ersek
2012-07-31 13:04 ` Stefan Hajnoczi [this message]
2012-07-31 14:20 ` Paolo Bonzini
-- strict thread matches above, loose matches on Subject: below --
2012-07-20 13:25 Stefan Hajnoczi
2012-07-31 13:31 ` Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJSP0QUOxPYqedQ9aepDPSjU0VtBm-q636q9OG0dKzRTojzojQ@mail.gmail.com \
--to=stefanha@gmail.com \
--cc=lersek@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@linux.vnet.ibm.com \
--cc=wuzhy@cn.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).