[Freeswitch-trunk] [commit] r6235 - freeswitch/trunk/src/mod/xml_int/mod_xml_curl

Freeswitch SVN mikej at freeswitch.org
Mon Nov 12 22:59:12 EST 2007


Author: mikej
Date: Mon Nov 12 22:59:11 2007
New Revision: 6235

Modified:
   freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c

Log:
add bugfix portion of MDXMLINT-17

Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c
==============================================================================
--- freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c	(original)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c	Mon Nov 12 22:59:11 2007
@@ -58,7 +58,10 @@
 	struct config_data *config_data = data;
 	int x;
 	x = write(config_data->fd, ptr, realsize);
-	return realsize;
+	if ( x != (int)realsize) {
+		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Short write! %d out of %d\n", x, realsize);
+	}
+	return x;
 }
 
 



More information about the Freeswitch-trunk mailing list