#include <stdlib.h>#include <stdarg.h>#include <qapplication.h>#include "scripts.h"#include "process.h"#include "info.h"
Functions | |
| ExitStatus | exec (const char *script, const char *description) |
| int | spawn (const char *script, const char *description) |
| ExitStatus exec | ( | const char * | script, | |
| const char * | description | |||
| ) |
Performs a synchronous execution of the exec process
Referenced by About::About(), execute(), start_cp(), start_mkdir(), and vexec().
| int spawn | ( | const char * | , | |
| const char * | descr | |||
| ) |
Will branch of a new process to execute the provided script. The return value is a local process id of the child.
A vfork should work slightly faster We don't care about a new task structure anyway
If we use exit instead of _exit our own static data structures will be destroyed ! Of course this routine is only necessary when there was an error becoming something else.
Referenced by bpmdjraw(), SongSelectorLogic::doOnlineHelp(), SongSlot::setup(), and spawn().
1.6.2