]> git.lyx.org Git - lyx.git/blobdiff - src/support/Systemcall.cpp
Fix samba related crashes
[lyx.git] / src / support / Systemcall.cpp
index dda23d66bce1d83369ca2d168a30bfbfda04fbf4..5713294055d9a9fe0a56977e12c8c98137ac7c3f 100644 (file)
@@ -225,8 +225,9 @@ int Systemcall::startscript(Starttype how, string const & what, bool process_eve
                return 0;
        }
 
-       if (!d.waitWhile(SystemcallPrivate::Running, process_events, 180000)) {
-               LYXERR0("Systemcall: '" << cmd << "' did not finished!");
+       int timeout_min = 30;
+       if (!d.waitWhile(SystemcallPrivate::Running, process_events, timeout_min * 60 * 1000)) {
+               LYXERR0("Systemcall: '" << cmd << "' did not finish!");
                LYXERR0("error " << d.errorMessage());
                LYXERR0("status " << d.exitStatusMessage());
                return 20;