|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Handing the terminal over to another program, as Python's os.exec*() did. More...
#include <QtCore/QString>#include <QtCore/QStringList>Go to the source code of this file.
Namespaces | |
| namespace | Sonde |
| Embeddable Model Context Protocol server for Qt applications. | |
Functions | |
| void | Sonde::Cli::replaceProcess (const QString &program, const QStringList &args) |
Runs program (a path, or a name looked up on PATH) with args in sonde's place, with its standard input, output and error. | |
Handing the terminal over to another program, as Python's os.exec*() did.
| void Sonde::Cli::replaceProcess | ( | const QString & | program, |
| const QStringList & | args ) |
Runs program (a path, or a name looked up on PATH) with args in sonde's place, with its standard input, output and error.
On POSIX sonde becomes it (execvp); on Windows, which can't do that, sonde runs it and exits with its exit status. Fails (status 1) if it can't be run.