GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

GFC::G::ChildWatchSignal Class Reference

A child watch signal class. More...

#include <gfc/main.hh>

List of all members.

Public Types

Public Member Functions


Detailed Description

A child watch signal class.


Member Function Documentation

sigc::connection GFC::G::ChildWatchSignal::connect const SlotType slot,
GPid  pid,
int  priority = PRIORITY_DEFAULT
 

Sets a callback slot to be called when the child indicated by pid exits, at a default priority, G::PRIORITY_DEFAULT.

Parameters:
slot The sigc::slot to call periodically.
pid The process id of a child process to watch.
priority The priority of the idle source.
Returns:
A sigc::connection object that can be used to break or alter the connection.

Note that on platforms where GPid must be explicitely closed pid must not be closed while the source is still active (see G::Spawn::close_pid()). Typically, you will want to call (see G::Spawn::close_pid()) in the callback slot for the source.

Typically the priority will be in the range between G::PRIORITY_DEFAULT_IDLE and G::PRIORITY_HIGH_IDLE.


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 00:04:57 2004 for GFC-Core by doxygen 1.3.8