diff options
| author | Gerd Hoffmann <kraxel@redhat.com> | 2009-06-16 14:19:48 +0200 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-16 15:18:36 -0500 |
| commit | 198a0039c5fca224a77e9761e2350dd9cc102ad0 (patch) | |
| tree | d7ec043e791602bd3a065db190bf127f8ecfe8be /hw/zaurus.c | |
| parent | 11a1feb6552e3a4709e454faea5e3be5ca8d9e6a (diff) | |
| download | focaccia-qemu-198a0039c5fca224a77e9761e2350dd9cc102ad0.tar.gz focaccia-qemu-198a0039c5fca224a77e9761e2350dd9cc102ad0.zip | |
vnc: rework VncState release workflow.
Split socket closing and releasing of VncState into two steps. First close the socket and set the variable to -1 to indicate shutdown in progress. Do the actual release in a few places where we can be sure it doesn't cause trouble in form of use-after-free. Add some checks for a valid socket handle to make sure we don't try to use the closed socket. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/zaurus.c')
0 files changed, 0 insertions, 0 deletions