More return checking
PATCH 1/1 More return checking
This one has been in our packages for a while
Jeremy
tools/xenmon/xenbaked.c renamed from tools/xenmon/xenbaked.c.compile +4 -1
@@ -549,7 +549,10 @@for (n=0 ; n<ncpu; n++) {for (i=0 ; i<sizeof (_new_qos_data); i=i+pgsize) -write (qos_fd, dummy, pgsize); +if ((write (qos_fd, dummy, pgsize)) != pgsize) { +PERROR (SHARED_MEM_FILE ); +exit (2 ); + } new_qos = (_new_qos_data *)mmap (0 ,sizeof (_new_qos_data),PROT_READ |PROT_WRITE ,MAP_SHARED , qos_fd, off);
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel