Revision: 45562
http://brlcad.svn.sourceforge.net/brlcad/?rev=45562&view=rev
Author: bhinesley
Date: 2011-07-21 07:17:10 +0000 (Thu, 21 Jul 2011)
Log Message:
-----------
"not validating 'write' return value; missed this in r45542"
Modified Paths:
--------------
brlcad/trunk/src/libbu/bomb.c
Modified: brlcad/trunk/src/libbu/bomb.c
===================================================================
--- brlcad/trunk/src/libbu/bomb.c 2011-07-21 06:39:44 UTC (rev 45561)
+++ brlcad/trunk/src/libbu/bomb.c 2011-07-21 07:17:10 UTC (rev 45562)
@@ -165,6 +165,8 @@
if (LIKELY(fd > 0)) {
int ret;
ret = write(fd, "Causing intentional core dump due to debug
flag\n", 48);
+ if (ret < 0 || (size_t)ret != 48)
+ perror("write failed");
close(fd);
}
abort(); /* should dump if ulimit is non-zero */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits