#include <process.h>
Public Types | |
| typedef RETSIGTYPE(* | Trap )(int) |
Static Public Member Functions | |
| void | detach (void) |
| Detach current process into a daemon, posix only. | |
| Trap | setPosixSignal (int signo, Trap handler) |
| Set a posix compliant signal handler. | |
| Trap | setInterruptSignal (int signo, Trap handler) |
| Set system call interuptable signal handler. | |
| int | spawn (const char *exec, const char **argv) |
| Spawn a process and wait for it's exit code. | |
| const char * | getEnv (const char *name) |
| Get system environment. | |
| void | setEnv (const char *name, const char *value, bool overwrite) |
| Set system environment in a standard manner. | |
These are typically referenced thru Process::xxx static member functions. Many of these members are used both for win32 and posix systems although some may be platform specific.
|
|
|
|
|
Detach current process into a daemon, posix only. Perhaps a similar method can be used for creating win32 "services"? |
|
|
Get system environment.
|
|
||||||||||||||||
|
Set system environment in a standard manner.
|
|
||||||||||||
|
Set system call interuptable signal handler. #return previous handler.
|
|
||||||||||||
|
Set a posix compliant signal handler.
|
|
||||||||||||
|
Spawn a process and wait for it's exit code. In win32 this is done with the spawn system call. In posix, this is done with a fork, an execvp, and a waitpid.
|
1.3.3