]> git.lyx.org Git - features.git/blobdiff - src/LaTeX.C
We don't currently use fork anywhere (or if we do it's by mistake!), so
[features.git] / src / LaTeX.C
index 8c812a389fcb00a2d65ec9e4f3885c6cad2da1e2..1ceeda1b00ab7e9fb058ae8956f4538d6616d410 100644 (file)
@@ -25,7 +25,6 @@
 #include "debug.h"
 #include "support/lyxlib.h"
 #include "support/syscall.h"
-#include "support/syscontr.h"
 #include "support/path.h"
 #include "support/LRegex.h"
 #include "support/LSubstring.h"
@@ -360,7 +359,7 @@ int LaTeX::operator()()
        string tmp = cmd + ' ' + file + " > nul";
 #endif
         Systemcalls one;
-       return one.startscript(Systemcalls::System, tmp);
+       return one.startscript(Systemcalls::Wait, tmp);
 }
 
 
@@ -377,7 +376,7 @@ bool LaTeX::runMakeIndex(string const & f)
        string tmp = "makeindex -c -q ";
        tmp += f;
        Systemcalls one;
-       one.startscript(Systemcalls::System, tmp);
+       one.startscript(Systemcalls::Wait, tmp);
        return true;
 }
 
@@ -508,7 +507,7 @@ bool LaTeX::runBibTeX(vector<Aux_Info> const & bibtex_info)
                string tmp = "bibtex ";
                tmp += OnlyFilename(ChangeExtension(it->aux_file, string()));
                Systemcalls one;
-               one.startscript(Systemcalls::System, tmp);
+               one.startscript(Systemcalls::Wait, tmp);
        }
        // Return whether bibtex was run
        return result;