.TH "KProcessController" 3 "28 Jan 2004" "kdecore Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KProcessController \- Used internally by \fBKProcess\fP.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kprocctrl.h>\fP
.PP
Inherits \fBQObject\fP.
.PP
.SS "Public Slots"

.in +1c
.ti -1c
.RI "void \fBslotDoHousekeeping\fP (int socket)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "void \fBaddKProcess\fP (\fBKProcess\fP *)"
.br
.ti -1c
.RI "void \fBremoveKProcess\fP (\fBKProcess\fP *)"
.br
.ti -1c
.RI "bool \fBwaitForProcessExit\fP (int timeout)"
.br
.RI "\fIWait for any process to exit and handle their exit without starting an event loop. \fP"
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "void \fBtheSigCHLDHandler\fP (int signal)"
.br
.RI "\fIAutomatically called upon SIGCHLD. \fP"
.ti -1c
.RI "void \fBsetupHandlers\fP ()"
.br
.ti -1c
.RI "void \fBresetHandlers\fP ()"
.br
.in -1c
.SS "Static Public Attributes"

.in +1c
.ti -1c
.RI "\fBKProcessController\fP * \fBtheKProcessController\fP = 0"
.br
.RI "\fIOnly a single instance of this class is allowed at a time, and this static variable is used to track the one instance. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Used internally by \fBKProcess\fP. Definition at line 50 of file kprocctrl.h.
.SH "Member Function Documentation"
.PP 
.SS "void KProcessController::theSigCHLDHandler (int signal)\fC [static]\fP"
.PP
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 146 of file kprocctrl.cpp.
.PP
References QValueList< KProcess * >::begin(), QValueList< KProcess * >::end(), fd, processList, and theKProcessController.
.SS "bool KProcessController::waitForProcessExit (int timeout)"
.PP
Wait for any process to exit and handle their exit without starting an event loop. This function may cause \fBKProcess\fP to emit any of its signals.
.PP
\fBParameters:\fP
.RS 4
\fItimeout\fP the timeout in seconds 
.RE
.PP
\fBReturns:\fP
.RS 4
true if a process exited, false if no process exited within \fCtimeout\fP seconds. 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP
Definition at line 276 of file kprocctrl.cpp.
.PP
References QTimer::isActive(), and QTimer::stop().
.SH "Member Data Documentation"
.PP 
.SS "\fBKProcessController\fP * \fBKProcessController::theKProcessController\fP = 0\fC [static]\fP"
.PP
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 46 of file kprocctrl.cpp.
.PP
Referenced by KProcess::detach(), KProcess::KProcess(), KProcess::start(), theSigCHLDHandler(), and KProcess::~KProcess().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdecore Library from the source code.
