org.kde.koala

Class KProcessController

public class KProcessController extends QObject

A class for internal use by KProcess only. -- Exactly one instance of this class is created by KApplication. This class takes care of the actual (UNX) signal handling.

Author: Christian Czezatke

UNKNOWN: Used internally by KProcess.

Constructor Summary
protected KProcessController(Class dummy)
Method Summary
voidaddKProcess(KProcess arg1)
voidaddProcess(int pid)
StringclassName()
static voidderef()
Destroy the instance if one exists and it is not referenced any more.
QMetaObjectmetaObject()
intnotifierFd()
static voidref()
Create an instance if none exists yet.
voidremoveKProcess(KProcess arg1)
voidrescheduleCheck()
This function must be called at some point after calling unscheduleCheck().
static voidtheSigCHLDHandler(int signal)
Automatically called upon SIGCHLD.
voidunscheduleCheck()
Call this function to defer processing of the data that became available on notifierFd().
booleanwaitForProcessExit(int timeout)
Wait for any process to exit and handle their exit without starting an event loop.

Constructor Detail

KProcessController

protected KProcessController(Class dummy)

Method Detail

addKProcess

public void addKProcess(KProcess arg1)

UNKNOWN:

addProcess

public void addProcess(int pid)

UNKNOWN:

className

public String className()

deref

public static void deref()
Destroy the instance if one exists and it is not referenced any more. Called by KApplication.~KApplication()

UNKNOWN: Destroy the instance if one exists and it is not referenced any more.

metaObject

public QMetaObject metaObject()

notifierFd

public int notifierFd()

ref

public static void ref()
Create an instance if none exists yet. Called by KApplication.KApplication()

UNKNOWN: Create an instance if none exists yet.

removeKProcess

public void removeKProcess(KProcess arg1)

UNKNOWN:

rescheduleCheck

public void rescheduleCheck()
This function must be called at some point after calling unscheduleCheck().

UNKNOWN: This function @em must be called at some point after calling unscheduleCheck().

theSigCHLDHandler

public static void theSigCHLDHandler(int signal)
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().

UNKNOWN: Automatically called upon SIGCHLD.

unscheduleCheck

public void unscheduleCheck()
Call this function to defer processing of the data that became available on notifierFd().

UNKNOWN: Call this function to defer processing of the data that became available on notifierFd().

waitForProcessExit

public boolean waitForProcessExit(int timeout)
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. -1 means no timeout.

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

UNKNOWN: Wait for any process to exit and handle their exit without starting an event loop.