Robustification of logging to a socket.  If the listener process dies
or for whatever reason hangs up the connection, don't let valgrind
get SIGPIPE; instead just switch back to spewing messages on stderr.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1273 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_include.h b/coregrind/vg_include.h
index 2793b9a..d9ff25b 100644
--- a/coregrind/vg_include.h
+++ b/coregrind/vg_include.h
@@ -875,11 +875,21 @@
 extern Int VG_(nanosleep)( const struct vki_timespec *req, 
                            struct vki_timespec *rem );
 
-extern Int  VG_(write_socket)( Int sd, void *msg, Int count );
+extern Int VG_(write_socket)( Int sd, void *msg, Int count );
 
 /* --- Connecting over the network --- */
 extern Int VG_(connect_via_socket)( UChar* str );
 
+
+/* ---------------------------------------------------------------------
+   Exports of vg_message.c
+   ------------------------------------------------------------------ */
+
+/* Low-level -- send bytes directly to the message sink.  Do not
+   use. */
+extern void VG_(send_bytes_to_logging_sink) ( Char* msg, Int nbytes );
+
+
 /* ---------------------------------------------------------------------
    Definitions for the JITter (vg_translate.c, vg_to_ucode.c,
    vg_from_ucode.c).