Choreonoid  1.8
Public Member Functions | List of all members
cnoid::Process Class Reference

#include <Process.h>

Inheritance diagram for cnoid::Process:

Public Member Functions

 Process (QObject *parent=0)
 
SignalProxy< void()> sigReadyReadStandardOutput ()
 
void start (const QString &program, const QStringList &arguments, OpenMode mode=ReadWrite)
 
void start (const QString &program, OpenMode mode=ReadWrite)
 

Detailed Description

Note
On Linux, a child process inherits the same process group as the parent. In this case, some signals such as SIGINT sent to the parent process are also sent to the child processes. (see "man setpgid" and http://stackoverflow.com/questions/6803395/child-process-receives-parents-sigint.) This behavior is not good when the choreonoid main process wants to manage its child processes when the main process is terminated by Ctrl+C. For a child process invoked by the start methods of this class, its own process group id is given and the signals sent to the main process are not sent to it.

Constructor & Destructor Documentation

◆ Process()

Process::Process ( QObject *  parent = 0)

Member Function Documentation

◆ sigReadyReadStandardOutput()

SignalProxy<void()> cnoid::Process::sigReadyReadStandardOutput ( )
inline

◆ start() [1/2]

void Process::start ( const QString &  program,
const QStringList &  arguments,
OpenMode  mode = ReadWrite 
)

◆ start() [2/2]

void Process::start ( const QString &  program,
OpenMode  mode = ReadWrite 
)

The documentation for this class was generated from the following files: