[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: libxl_qmp: Fix return check of fcntl
# HG changeset patch # User Anthony PERARD <anthony.perard@xxxxxxxxxx> # Date 1320410302 0 # Node ID e0b6b0e68e90c6e09c893b2905d736b0500e5e79 # Parent 801ca6c0fbfa07e12c10c3079fc60cfb47dd0e3b libxl: libxl_qmp: Fix return check of fcntl Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx> Committed-by: Ian Jackson <ian.jackson.citrix.com> --- diff -r 801ca6c0fbfa -r e0b6b0e68e90 tools/libxl/libxl_qmp.c --- a/tools/libxl/libxl_qmp.c Thu Nov 03 17:28:41 2011 +0100 +++ b/tools/libxl/libxl_qmp.c Fri Nov 04 12:38:22 2011 +0000 @@ -296,7 +296,7 @@ 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) { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |