]> pilppa.org Git - libplpha.git/blobdiff - src/launcher.c
copy headers with make install, start integrating sysout methods to use libplp
[libplpha.git] / src / launcher.c
index 07f22ccc7443d464e1d5ebfd6cc15928f8ef2f14..8b831a9ae47ced98960cc8cf1cc46ed2346c200f 100644 (file)
@@ -9,6 +9,8 @@
 #include <stdlib.h>
 #include <unistd.h>
 
+#include <plp/log.h>
+
 int launch_new_process(char *param_arr[]) {
        int ret_val;
        int child_pid;
@@ -23,7 +25,7 @@ int launch_new_process(char *param_arr[]) {
                //execvp(param_arr[0], param_arr);
                // first parameter must contain a full path to executable
                execv(param_arr[0], param_arr);
-               printf("Failed to execute\n");
+               log_error("Failed to launch new process\n");
                exit(-1);
        }
        else {