--- xen-3.0.0/tools/xenmon/xenbaked.c.compile 2005-12-06 09:05:34.000000000 -0500
+++ xen-3.0.0/tools/xenmon/xenbaked.c 2005-12-06 16:05:24.000000000 -0500
@@ -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);