diff options
Diffstat (limited to 'src/Process.cpp')
-rw-r--r-- | src/Process.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Process.cpp b/src/Process.cpp index 822e82e..f9c896c 100644 --- a/src/Process.cpp +++ b/src/Process.cpp @@ -10,11 +10,22 @@ #include <stdlib.h> namespace gsr { + static void debug_print_args(const char **args) { + fprintf(stderr, "gsr-overlay info: running command:"); + while(*args) { + fprintf(stderr, " %s", *args); + ++args; + } + fprintf(stderr, "\n"); + } + bool exec_program_daemonized(const char **args) { /* 1 argument */ if(args[0] == nullptr) return false; + debug_print_args(args); + pid_t pid = vfork(); if(pid == -1) { perror("Failed to vfork"); @@ -45,6 +56,8 @@ namespace gsr { if(args[0] == nullptr) return -1; + debug_print_args(args); + pid_t pid = vfork(); if(pid == -1) { perror("Failed to vfork"); |