]> git.lyx.org Git - lyx.git/blobdiff - src/support/forkedcontr.C
another safety belt
[lyx.git] / src / support / forkedcontr.C
index 7df4e211c373c7849cb131924b4e9c07b68c908d..d5f5d3eacf0c746ba24f1766319a928e75702a83 100644 (file)
@@ -1,11 +1,13 @@
 /**
  * \file forkedcontr.C
- * Copyright 2001 The LyX Team
- * Read COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Asger Alstrup Nielsen
  * \author Angus Leeming
  *
+ * Full author contact details are available in file CREDITS
+ *
  * A class for the control of child processes launched using
  * fork() and execvp().
  */
@@ -69,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();
 }
 
@@ -89,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;