#include <Process.h>
- 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.
◆ Process()
Process::Process |
( |
QObject * |
parent = 0 | ) |
|
◆ 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: