projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8430e7
)
qemu-ga: ask and print error information from qemu-sockets
author
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 2 Oct 2012 08:09:14 +0000
(10:09 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 23 Oct 2012 11:54:56 +0000
(13:54 +0200)
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qga/channel-posix.c
patch
|
blob
|
history
diff --git
a/qga/channel-posix.c
b/qga/channel-posix.c
index e22eee6f6783db2726aad1d9e1d2c1ab8addb847..d152827bcfb28a45c14543195d77d02a98275338 100644
(file)
--- a/
qga/channel-posix.c
+++ b/
qga/channel-posix.c
@@
-181,9
+181,11
@@
static gboolean ga_channel_open(GAChannel *c, const gchar *path, GAChannelMethod
break;
}
case GA_CHANNEL_UNIX_LISTEN: {
- int fd = unix_listen(path, NULL, strlen(path), NULL);
- if (fd == -1) {
- g_critical("error opening path: %s", strerror(errno));
+ Error *local_err = NULL;
+ int fd = unix_listen(path, NULL, strlen(path), &local_err);
+ if (local_err != NULL) {
+ g_critical("%s", error_get_pretty(local_err));
+ error_free(local_err);
return false;
}
ga_channel_listen_add(c, fd, true);