summaryrefslogtreecommitdiffstats
path: root/runtime/stpd
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/stpd')
-rw-r--r--runtime/stpd/ChangeLog4
-rw-r--r--runtime/stpd/librelay.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/runtime/stpd/ChangeLog b/runtime/stpd/ChangeLog
index e9b1a793..448c0209 100644
--- a/runtime/stpd/ChangeLog
+++ b/runtime/stpd/ChangeLog
@@ -1,3 +1,7 @@
+2005-08-19 Martin Hunt <hunt@redhat.com>
+
+ * librelay.c (reader_thread): Check the return value for write().
+
2005-08-19 Frank Ch. Eigler <fche@elastic.org>
* librelay.c (modpath): New global. Use it for insmod only.
diff --git a/runtime/stpd/librelay.c b/runtime/stpd/librelay.c
index 6bceb99f..9dc52f25 100644
--- a/runtime/stpd/librelay.c
+++ b/runtime/stpd/librelay.c
@@ -359,7 +359,8 @@ static void *reader_thread(void *data)
status[cpu].info.consumed += subbufs_consumed;
consumed_info.cpu = cpu;
consumed_info.consumed = subbufs_consumed;
- write (proc_file[cpu], &consumed_info, sizeof(struct consumed_info));
+ if (write (proc_file[cpu], &consumed_info, sizeof(struct consumed_info)) < 0)
+ fprintf(stderr,"WARNING: writing consumed info failed.\n");
}
} while (1);
}