diff options
| author | Cole Robinson | 2015-05-05 17:07:19 +0200 |
|---|---|---|
| committer | Gerd Hoffmann | 2015-05-20 10:23:08 +0200 |
| commit | 0ef705a2653f09c15e44a644a98b6febc761431e (patch) | |
| tree | fcfe9ae99e07f523fb55e4c75a0b1794dcb666ff /include/exec/memory.h | |
| parent | vnc: Tweak error when init fails (diff) | |
| download | qemu-0ef705a2653f09c15e44a644a98b6febc761431e.tar.gz qemu-0ef705a2653f09c15e44a644a98b6febc761431e.tar.xz qemu-0ef705a2653f09c15e44a644a98b6febc761431e.zip | |
qemu-sockets: Report explicit error if unlink fails
Consider this case:
$ ls -ld ~/root-owned/
drwx--x--x. 2 root root 4096 Apr 29 12:55 /home/crobinso/root-owned/
$ ls -l ~/root-owned/foo.sock
-rwxrwxrwx. 1 crobinso crobinso 0 Apr 29 12:55 /home/crobinso/root-owned/foo.sock
$ qemu-system-x86_64 -vnc unix:~/root-owned/foo.sock
qemu-system-x86_64: -vnc unix:/home/crobinso/root-owned/foo.sock: Failed to start VNC server: Failed to bind socket to /home/crobinso/root-owned/foo.sock: Address already in use
...which is techinically true, but the real error is that we failed to
unlink. So report it.
This may seem pathological but it's a real possibility via libvirt.
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/exec/memory.h')
0 files changed, 0 insertions, 0 deletions
