passage/minorGems/system/unix/LauncherUnix.cpp
2025-10-03 02:19:59 -04:00

33 lines
507 B
C++

/*
* 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
}
}