projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
948d141
)
libxl: libxl_qmp: Fix return check of fcntl
author
Anthony PERARD
<anthony.perard@citrix.com>
Fri, 4 Nov 2011 12:38:22 +0000
(12:38 +0000)
committer
Anthony PERARD
<anthony.perard@citrix.com>
Fri, 4 Nov 2011 12:38:22 +0000
(12:38 +0000)
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/libxl/libxl_qmp.c
patch
|
blob
|
history
diff --git
a/tools/libxl/libxl_qmp.c
b/tools/libxl/libxl_qmp.c
index 618f20fd860a08cde8eb893c99ed73b8381c22ff..ef36348d29b9d057d7a75f58f1cdecf48d756db1 100644
(file)
--- a/
tools/libxl/libxl_qmp.c
+++ b/
tools/libxl/libxl_qmp.c
@@
-296,7
+296,7
@@
static int qmp_open(libxl__qmp_handler *qmp, const char *qmp_socket_path,
if (qmp->qmp_fd < 0) {
return -1;
}
- if ((flags = fcntl(qmp->qmp_fd, F_GETFL)) == 1) {
+ if ((flags = fcntl(qmp->qmp_fd, F_GETFL)) ==
-
1) {
flags = 0;
}
if (fcntl(qmp->qmp_fd, F_SETFL, flags | O_NONBLOCK) == -1) {