[Libreoffice-commits] online.git: loolwsd/Util.cpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Sat Apr 9 19:56:00 UTC 2016


 loolwsd/Util.cpp |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit e5846ee2ccab145e68865e13c890208a3dfdc7ec
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Sat Apr 9 15:40:51 2016 -0400

    loolwsd: supress unused-result and log error
    
    Change-Id: I0ca04d5d9e18fdda6c2dca29386dbcc9a6df7784
    Reviewed-on: https://gerrit.libreoffice.org/23941
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/Util.cpp b/loolwsd/Util.cpp
index f60f9a0..c26e63b 100644
--- a/loolwsd/Util.cpp
+++ b/loolwsd/Util.cpp
@@ -454,7 +454,11 @@ namespace Util
                     ioVector[1+i*2+1].iov_base = (void*)"\n";
                     ioVector[1+i*2+1].iov_len = 1;
                 }
-                writev(STDERR_FILENO, ioVector, numSlots*2+1);
+
+                if (writev(STDERR_FILENO, ioVector, numSlots*2+1) == -1)
+                {
+                    Log::syserror("Failed to dump backtrace to stderr.");
+                }
             }
         }
 


More information about the Libreoffice-commits mailing list