4 * Created on: Sep 14, 2010
12 int launch_new_process(char *param_arr[]) {
17 if (child_pid == -1) {
18 // failed to fork a new process
21 else if (child_pid == 0) {
22 // code for launched child process
23 //execvp(param_arr[0], param_arr);
24 // first parameter must contain a full path to executable
25 execv(param_arr[0], param_arr);
26 printf("Failed to execute\n");
30 // code for parent process which launched the child