[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] not valid file descriptor is -1 not 0



# HG changeset patch
# User vh249@xxxxxxxxxxxxxxxxxxxxxx
# Node ID c813cb64d82ea97870416d2d0cdd6c3992a2c2b1
# Parent  b7ee6eb5000b6960e4541d356a7de029ee305836
not valid file descriptor is -1 not 0

diff -r b7ee6eb5000b -r c813cb64d82e tools/libxc/xc_core.c
--- a/tools/libxc/xc_core.c     Fri Aug 12 10:48:42 2005
+++ b/tools/libxc/xc_core.c     Fri Aug 12 10:51:39 2005
@@ -108,7 +108,7 @@
        free(dump_mem_start);
        return 0;
  error_out:
-       if (dump_fd)
+       if (dump_fd != -1)
                close(dump_fd);
        free(dump_mem_start);
        return -1;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.