process.h File Reference

#include <stdlib.h>
#include <assert.h>
Include dependency graph for process.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  ExitStatus
class  Process

Functions

int spawn (const char *, const char *descr)
int spawn (const char *str, const char *descr, Process *target)
ExitStatus exec (const char *script, const char *description)

Function Documentation

ExitStatus exec ( const char *  script,
const char *  description 
)

executes the given command and returns the execution status

Performs a synchronous execution of the exec process

References Debug(), Process::exec(), Process::exitstatus, Fatal(), ExitStatus::pid, ExitStatus::status, and status.

Referenced by About::About(), execute(), start_cp(), start_mkdir(), and vexec().

int spawn ( const char *  str,
const char *  descr,
Process target 
)

References request_spawn().

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.

References Debug(), Error(), spawn(), and status.

Referenced by bpmdjraw(), SongSelectorLogic::doOnlineHelp(), SongSlot::setup(), and spawn().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2