]> git.lyx.org Git - features.git/commitdiff
no timeout when starting up a process, cleanup error message when error code in not 0
authorPeter Kümmel <syntheticpp@gmx.net>
Sun, 6 Dec 2009 22:40:16 +0000 (22:40 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Sun, 6 Dec 2009 22:40:16 +0000 (22:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32376 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/Systemcall.cpp

index 69692aaa529f7e62fe31b794532f427c368084d3..8875538f320f7e670f69189f82bd71a04fe160f9 100644 (file)
@@ -107,7 +107,7 @@ int Systemcall::startscript(Starttype how, string const & what, bool process_eve
 
 
        d.startProcess(cmd);
-       if (!d.waitWhile(SystemcallPrivate::Starting, process_events, 3000)) {
+  if (!d.waitWhile(SystemcallPrivate::Starting, process_events, -1)) {
                LYXERR0("QProcess " << cmd << " did not start!");
                LYXERR0("error " << d.errorMessage());
                return 10;
@@ -128,8 +128,7 @@ int Systemcall::startscript(Starttype how, string const & what, bool process_eve
 
        int const exit_code = d.exitCode();
        if (exit_code) {
-               LYXERR0("QProcess " << cmd << " finished!");
-               LYXERR0("error " << exit_code << ": " << d.errorMessage()); 
+    LYXERR0("QProcess cmd: ' " << cmd << "' finished with exit code " << exit_code);
        }
 
        return exit_code;