4 * Created on: Sep 14, 2010
14 int launch_new_process(char *param_arr[]) {
19 if (child_pid == -1) {
20 // failed to fork a new process
23 else if (child_pid == 0) {
24 // code for launched child process
25 //execvp(param_arr[0], param_arr);
26 // first parameter must contain a full path to executable
27 execv(param_arr[0], param_arr);
28 log_error("Failed to launch new process\n");
32 // code for parent process which launched the child