]> git.lyx.org Git - lyx.git/blobdiff - src/support/forkedcontr.C
another safety belt
[lyx.git] / src / support / forkedcontr.C
index 0da94ef5d04fb3c2e10588e5111bdc41a1b06da6..d5f5d3eacf0c746ba24f1766319a928e75702a83 100644 (file)
@@ -71,14 +71,12 @@ ForkedcallsController::~ForkedcallsController()
 }
 
 
-// Add child process information to the list of controlled processes
-void ForkedcallsController::addCall(Forkedcall const &newcall)
+void ForkedcallsController::addCall(ForkedProcess const & newcall)
 {
        if (!timeout_->running())
                timeout_->start();
 
-       Forkedcall * call = new Forkedcall(newcall);
-       forkedCalls.push_back(call);
+       forkedCalls.push_back(newcall.clone());
        childrenChanged();
 }
 
@@ -91,7 +89,7 @@ void ForkedcallsController::timer()
 
        for (ListType::iterator it = forkedCalls.begin();
             it != forkedCalls.end(); ++it) {
-               Forkedcall * actCall = *it;
+               ForkedProcess * actCall = *it;
 
                pid_t pid = actCall->pid();
                int stat_loc;