aboutsummaryrefslogtreecommitdiff
path: root/src/Process.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-10-12 17:43:27 +0200
committerdec05eba <dec05eba@protonmail.com>2024-10-12 17:43:27 +0200
commitdfafdd9ef5e8fefa4ac2431c3243cf61c994a6f4 (patch)
treefcbff5ccaf4fb2662601d7468bb5b5a4025dcbce /src/Process.cpp
parent9d76b0861eb0249194e96b663fbeca60cd5bfeb0 (diff)
Constant bitrate option as default for streaming
Diffstat (limited to 'src/Process.cpp')
-rw-r--r--src/Process.cpp13
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");