class KProcessController

# class KProcessController | Used internally by KProcess. More...
Internal Use Only
Definition | `#include <kprocctrl.h>`
Inherits | QObject (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KProcessController ()
- ~KProcessController ()
- void addKProcess ( KProcess* )
- void removeKProcess ( KProcess* )
- bool waitForProcessExit (int timeout)

#### Public Slots

- void slotDoHousekeeping (int socket)

#### Public Static Methods

- static void theSigCHLDHandler (int signal)
- static void setupHandlers ()
- static void resetHandlers ()

#### Public Members

- static KProcessController *theKProcessController

## 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:

timeout | the timeout in seconds

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

void slotDoHousekeeping (int socket) | ### slotDoHousekeeping

[slot]

- Author: Christian Czezakte
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:15 2003, using kdoc 2.0a54.