class KProcessController

Used internally by KProcess. More...

Internal Use Only
Definition#include <kprocctrl.h>
InheritsQObject (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Public Static Methods

Public Members


Detailed Description

A class for internal use by KProcess only. -- Exactly one instance of this class is generated by the first instance of KProcess that is created (a pointer to it gets stored in theKProcessController ).

This class takes care of the actual (UN*X) signal handling.

 KProcessController ()

KProcessController

 ~KProcessController ()

~KProcessController

static KProcessController * theKProcessController

theKProcessController

void  theSigCHLDHandler (int signal)

theSigCHLDHandler

[static]

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.

void  setupHandlers ()

setupHandlers

[static]

void  resetHandlers ()

resetHandlers

[static]

void  addKProcess ( KProcess* )

addKProcess

void  removeKProcess ( KProcess* )

removeKProcess

bool  waitForProcessExit (int timeout)

waitForProcessExit

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.

Parameters:
timeoutthe timeout in seconds

Returns: true if a process exited, false if no process exited within timeout seconds.

void  slotDoHousekeeping (int socket)

slotDoHousekeeping

[slot]