[Libreoffice-commits] .: desktop/scripts

Stephan Bergmann sbergmann at kemper.freedesktop.org
Fri Jan 13 00:29:31 PST 2012


 desktop/scripts/soffice.sh |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 7a00472067403ebe1cfbedbfabfde03cc19c9c34
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jan 13 09:28:16 2012 +0100

    Better fix for the valgrind.log problem.
    
    Only redirect to valgrind.log if --valgrind but not $VALGRIND is given.

diff --git a/desktop/scripts/soffice.sh b/desktop/scripts/soffice.sh
index 1ae4fb7..4d14051 100755
--- a/desktop/scripts/soffice.sh
+++ b/desktop/scripts/soffice.sh
@@ -151,6 +151,12 @@ if [ -n "$GDBTRACECHECK" ] ; then
     exec $GDBTRACECHECK "$sd_prog/soffice.bin" "$@"
 fi
 
+# valgrind --log-file=valgrind.log does not work well with --trace-children=yes
+if [ -n "$VALGRINDCHECK" -a -z "$VALGRIND" ] ; then
+    echo "redirecting the standard and the error output to valgrind.log"
+    exec &>valgrind.log
+fi
+
 # do not pass the request for command line help to oosplash
 if test "$#" -eq 1; then
     case "$1" in


More information about the Libreoffice-commits mailing list