|
CX Framework
Cross-platform C utility framework
|
#include <process.h>
Data Fields | |
| string | workdir |
| Directory to start the child in; empty inherits the caller's. | |
| ProcStdio | stdio |
| What to do with the child's stdin, stdout and stderr. | |
| string | stdioPath |
| File for PROC_StdioFile; required in that mode, ignored otherwise. | |
| hashtable | env |
| Variables to set in the child, name to value. | |
| sa_string | envUnset |
| Variables to remove from the child. | |
| flags_t | flags |
| ProcLaunchFlags. | |
Options for procLaunch()
Initialize with procOptsInit() and clean up with procOptsDestroy(). Passing NULL to procLaunch() instead inherits everything from the calling process.
Paths are ordinary cx paths, the same as the fs functions take. A relative path is relative to the caller's current directory.