> The xforms event loop in my tree now looks like: > > while (!finished) { > ForkedcallsController::get().handleCompletedProcesses(); > if (fl_check_forms() == FL_EVENT) { > ... > } > } > > where handleCompletedProcesses() simply checks whether a SIGCHLD > signal has been received and, if so, cleans up after it. > (handle_children is set to true in the handler receiving a SIGCHLD > signal.)
[...] > 2. How do I do this for Qt, given that the xforms event loop above is > replaced with > > qApp->exec(); In this direct approach I presume you need to somehow derive from (or make a copy of) QEventLoop and put the relevant magic in there. I also presume that QProcess takes care of all that one way or another, so maybe ForkedcallsController could just use QProcess instead if on Qt? That would make life simpler methinks. Cheers, Kuba Ober