]> git.lyx.org Git - features.git/commitdiff
When getting packages via miktex 3 minutes is to short for
authorPeter Kümmel <syntheticpp@gmx.net>
Tue, 11 Jan 2011 18:46:41 +0000 (18:46 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Tue, 11 Jan 2011 18:46:41 +0000 (18:46 +0000)
the timeout. 30 minutes should be enough, also for very big documents.
#7228

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37176 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/Systemcall.cpp

index a563c13ce7e1cc3afec0a26ea62f109b6d149265..5713294055d9a9fe0a56977e12c8c98137ac7c3f 100644 (file)
@@ -225,7 +225,8 @@ int Systemcall::startscript(Starttype how, string const & what, bool process_eve
                return 0;
        }
 
-       if (!d.waitWhile(SystemcallPrivate::Running, process_events, 180000)) {
+       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());