#include </home/clem/local/src/opie/noncore/unsupported/libopie/oprocctrl.h>
Collaboration diagram for OProcessController:

Public Slots | |
| void | slotDoHousekeeping (int socket) |
Public Member Functions | |
| OProcessController () | |
| ~OProcessController () | |
| void | addOProcess (OProcess *) |
| void | removeOProcess (OProcess *) |
Static Public Member Functions | |
| static void | theSigCHLDHandler (int signal) |
| static void | setupHandlers () |
| static void | resetHandlers () |
Static Public Attributes | |
| static OProcessController * | theOProcessController = 0 |
Private Slots | |
| void | delayedChildrenCleanup () |
Private Member Functions | |
| OProcessController (const OProcessController &) | |
| OProcessController & | operator= (const OProcessController &) |
Private Attributes | |
| int | fd [2] |
| QSocketNotifier * | notifier |
| QValueList< OProcess * > | processList |
| QTimer | delayedChildrenCleanupTimer |
| OProcessControllerPrivate * | d |
Static Private Attributes | |
| static struct sigaction | oldChildHandlerData |
| static bool | handlerSet = false |
For internal use only.
This class takes care of the actual (UN*X) signal handling.
Definition at line 51 of file oprocctrl.h.
|
|
Definition at line 49 of file oprocctrl.cpp. References assert, delayedChildrenCleanup(), printf, setupHandlers(), and slotDoHousekeeping(). |
|
|
Definition at line 253 of file oprocctrl.cpp. References assert, fd, notifier, resetHandlers(), and theOProcessController. |
|
|
|
|
|
For internal use only.
Definition at line 109 of file oprocctrl.cpp. References QValueList< T >::append(), and processList. Referenced by OProcess::init(). |
|
|
Definition at line 236 of file oprocctrl.cpp. References QValueList< T >::begin(), QValueList< T >::end(), fd, waitdata::pid, processList, waitdata::status, and write(). Referenced by OProcessController(). |
|
|
|
|
|
For internal use only.
Definition at line 119 of file oprocctrl.cpp. References processList, and QValueList< T >::remove(). Referenced by OProcess::detach(), and OProcess::~OProcess(). |
|
|
For internal use only.
Definition at line 99 of file oprocctrl.cpp. References handlerSet, and oldChildHandlerData. Referenced by ~OProcessController(). |
|
|
For internal use only.
Definition at line 69 of file oprocctrl.cpp. References handlerSet, oldChildHandlerData, and theSigCHLDHandler(). Referenced by OProcessController(). |
|
|
For internal use only.
Definition at line 185 of file oprocctrl.cpp. References QValueList< T >::begin(), OProcess::Block, delayedChildrenCleanupTimer, QValueList< T >::end(), fd, OProcess::pid(), OProcess::processHasExited(), processList, OProcess::run_mode, OProcess::runs, and OProcess::status. Referenced by OProcessController(). |
|
|
Automatically called upon SIGCHLD. Normally you do not need to do anything with this function but if your application needs to disable SIGCHLD for some time for reasons beyond your control, you should call this function afterwards to make sure that no SIGCHLDs where missed. Definition at line 140 of file oprocctrl.cpp. References QValueList< T >::begin(), QValueList< T >::end(), fd, oldChildHandlerData, waitdata::pid, processList, waitdata::status, theOProcessController, and write(). Referenced by setupHandlers(). |
|
|
Definition at line 115 of file oprocctrl.h. |
|
|
Definition at line 109 of file oprocctrl.h. Referenced by slotDoHousekeeping(). |
|
|
Definition at line 104 of file oprocctrl.h. Referenced by delayedChildrenCleanup(), slotDoHousekeeping(), theSigCHLDHandler(), and ~OProcessController(). |
|
|
Definition at line 47 of file oprocctrl.cpp. Referenced by resetHandlers(), and setupHandlers(). |
|
|
Definition at line 105 of file oprocctrl.h. Referenced by ~OProcessController(). |
|
|
Definition at line 106 of file oprocctrl.h. Referenced by resetHandlers(), setupHandlers(), and theSigCHLDHandler(). |
|
|
Definition at line 108 of file oprocctrl.h. Referenced by addOProcess(), delayedChildrenCleanup(), removeOProcess(), slotDoHousekeeping(), and theSigCHLDHandler(). |
|
|
Only a single instance of this class is allowed at a time, and this static variable is used to track the one instance. Definition at line 44 of file oprocctrl.cpp. Referenced by OProcess::detach(), Opie::Core::OProcess::detach(), OProcess::init(), Opie::Core::OProcess::init(), OProcess::start(), Opie::Core::OProcess::start(), theSigCHLDHandler(), OProcess::~OProcess(), Opie::Core::OProcess::~OProcess(), and ~OProcessController(). |
1.4.2