Changeset: a08aa5aa8154 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a08aa5aa8154
Modified Files:
sql/src/backends/monet5/merovingian/daemon/discoveryrunner.c
Branch: default
Log Message:
deal with fortification warnings
diffs (19 lines):
diff -r d112b7de4485 -r a08aa5aa8154
sql/src/backends/monet5/merovingian/daemon/discoveryrunner.c
--- a/sql/src/backends/monet5/merovingian/daemon/discoveryrunner.c Mon Sep
20 17:36:28 2010 +0200
+++ b/sql/src/backends/monet5/merovingian/daemon/discoveryrunner.c Mon Sep
20 17:40:03 2010 +0200
@@ -350,8 +350,13 @@
* are active */
if (strcmp(host, _mero_hostname) != 0) {
disc_message_tap h = _mero_disc_msg_taps;
- for (; h != NULL; h = h->next)
- write(h->fd, buf, nread);
+ for (; h != NULL; h = h->next) {
+ if (write(h->fd, buf, nread) == -1) {
+ /* really nothing to be done here,
since this is
+ * best effort stuff, keep the
condition to keep
+ * fortification warnings off */
+ }
+ }
}
if (strncmp(buf, "HELO ", 5) == 0) {
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list