/**
* \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().
*/
}
-// 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();
}
for (ListType::iterator it = forkedCalls.begin();
it != forkedCalls.end(); ++it) {
- Forkedcall * actCall = *it;
+ ForkedProcess * actCall = *it;
pid_t pid = actCall->pid();
int stat_loc;