Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

17 lines
261 B
C

#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
enum {ERROR = -1,CHILD = 0};
pid_t pid = fork();
if(pid==ERROR)
{ return FALSE;
}
if(pid!=CHILD)
{ return TRUE;
}
// execute child code:
char* args = {"1","2"};
execv("hello.exe",args)
return TRUE;