WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] not valid file descriptor is -1 not 0, Xen patchbot -unstable <=