Initial source commit
This commit is contained in:
commit
f1384c11ee
335 changed files with 52715 additions and 0 deletions
33
minorGems/system/unix/LauncherUnix.cpp
Normal file
33
minorGems/system/unix/LauncherUnix.cpp
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* Modification History
|
||||
*
|
||||
* 2003-January-10 Jason Rohrer
|
||||
* Created.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "minorGems/system/Launcher.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
|
||||
void Launcher::launchCommand( char *inCommandName,
|
||||
char **inArguments ) {
|
||||
|
||||
|
||||
int forkValue = fork();
|
||||
|
||||
if( forkValue == 0 ) {
|
||||
// we're in child process, so exec command
|
||||
|
||||
execvp( inCommandName, inArguments );
|
||||
|
||||
// we'll never return from this call
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue