[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/4] sockets: switch vnc to new code, support vn
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH 3/4] sockets: switch vnc to new code, support vnc port auto-allocation. |
Date: |
Wed, 29 Oct 2008 11:46:58 +0100 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080723) |
Gerd Hoffmann wrote:
> Blue Swirl wrote:
>> On 10/28/08, Gerd Hoffmann <address@hidden> wrote:
>>> This patch switches the vnc code ofer to the new socket helper
>>> functions.
>>> - if (strcmp(display, "none") == 0)
>>> - return 0;
>>> -
>>> if (!(vs->display = strdup(display)))
>>> return -1;
>>> + if (strcmp(display, "none") == 0)
>>> + return 0;
>> Why this change?
>
> To keep vs->display and thus the "info vnc" output up-to-date. Without
> this you'll see stale information after "change vnc none".
Scratch that. vs->display is released and set to NULL in
vnc_display_close(). So this chunk isn't needed at all, I'll drop it.
cheers,
Gerd
- Re: [Qemu-devel] [PATCH 1/4] Implement "info chardev" command., (continued)
[Qemu-devel] [PATCH 3/4] sockets: switch vnc to new code, support vnc port auto-allocation., Gerd Hoffmann, 2008/10/28
Re: [Qemu-devel] [PATCH 0/4] ipv6 and autoport patches., Anthony Liguori, 2008/10/28