KProcessController Class Reference
Used internally by KProcess. More...
#include <kprocctrl.h>
Inheritance diagram for KProcessController:

Public Member Functions | |
bool | waitForProcessExit (int timeout) |
void | unscheduleCheck () |
void | rescheduleCheck () |
int | notifierFd () const |
void | addKProcess (KProcess *) |
void | removeKProcess (KProcess *) |
void | addProcess (int pid) |
Static Public Member Functions | |
static void | ref () |
static void | deref () |
static void | theSigCHLDHandler (int signal) |
Static Public Attributes | |
static KProcessController * | theKProcessController |
Friends | |
class | I_just_love_gcc |
Detailed Description
Used internally by KProcess.
Definition at line 39 of file kprocctrl.h.
Member Function Documentation
|
Create an instance if none exists yet. Called by
Definition at line 39 of file kprocctrl.cpp. References theKProcessController. Referenced by addProcess(), and KProcess::KProcess(). |
|
Destroy the instance if one exists and it is not referenced any more. Called by
Definition at line 48 of file kprocctrl.cpp. References theKProcessController. Referenced by KApplication::~KApplication(), and KProcess::~KProcess(). |
|
Automatically called upon SIGCHLD. Never call it directly. If your application (or some library it uses) redirects SIGCHLD, the new signal handler (and only it) should call the old handler returned by sigaction(). Definition at line 147 of file kprocctrl.cpp. References fd, and theKProcessController. |
|
Wait for any process to exit and handle their exit without starting an event loop. This function may cause KProcess to emit any of its signals.
Definition at line 223 of file kprocctrl.cpp. |
|
Call this function to defer processing of the data that became available on notifierFd().
Definition at line 170 of file kprocctrl.cpp. Referenced by KProcess::start(), and KProcess::wait(). |
|
This function must be called at some point after calling unscheduleCheck().
Definition at line 178 of file kprocctrl.cpp. Referenced by KProcess::start(), and KProcess::wait(). |
Member Data Documentation
|
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 60 of file kprocctrl.h. Referenced by KProcess::commClose(), deref(), KProcess::detach(), KProcess::KProcess(), ref(), KProcess::start(), theSigCHLDHandler(), KProcess::wait(), and KProcess::~KProcess(). |
The documentation for this class was generated from the following files: