]> git.lyx.org Git - lyx.git/blobdiff - src/support/ForkedCalls.cpp
Reorder a bit status messages, but they are still cleared at the end of LyXFunc
[lyx.git] / src / support / ForkedCalls.cpp
index 0768652cfb744d2a4a27b1d9ea41e7705bbd7519..e5e2aa8c2b0be5cc4bb06501e0ac4f692778bfc1 100644 (file)
@@ -150,7 +150,7 @@ int ForkedProcess::run(Starttype type)
 
 bool ForkedProcess::running() const
 {
-       if (!pid())
+       if (pid() <= 0)
                return false;
 
 #if !defined (_WIN32)
@@ -170,7 +170,7 @@ bool ForkedProcess::running() const
 void ForkedProcess::kill(int tol)
 {
        lyxerr << "ForkedProcess::kill(" << tol << ')' << endl;
-       if (pid() == 0) {
+       if (pid() <= 0) {
                lyxerr << "Can't kill non-existent process!" << endl;
                return;
        }
@@ -444,8 +444,8 @@ void callNext()
        // Bind our chain caller
        pro.second->connect(boost::bind(&ForkedCallQueue::callback, _1, _2));
        ForkedCall call;
-       // If we fail to fork the process, then emit the signal
-       // to tell the outside world that it failed.
+       //If we fail to fork the process, then emit the signal
+       //to tell the outside world that it failed.
        if (call.startScript(pro.first, pro.second) > 0)
                pro.second->operator()(0,1);
 }