From 4c83972a4f25a1918103e39ade4ef4d5b948db8a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 10 Dec 2024 19:42:01 +0100 Subject: Timeout window creation position hack, force floating, disable 'all monitors' record option for now --- src/Process.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Process.cpp') diff --git a/src/Process.cpp b/src/Process.cpp index a8e5fb5..a9c5103 100644 --- a/src/Process.cpp +++ b/src/Process.cpp @@ -29,7 +29,7 @@ namespace gsr { debug_print_args(args); - pid_t pid = vfork(); + const pid_t pid = vfork(); if(pid == -1) { perror("Failed to vfork"); return false; @@ -38,7 +38,7 @@ namespace gsr { signal(SIGHUP, SIG_IGN); // Daemonize child to make the parent the init process which will reap the zombie child - pid_t second_child = vfork(); + const pid_t second_child = vfork(); if(second_child == 0) { // child execvp(args[0], (char* const*)args); perror("execvp"); @@ -68,7 +68,7 @@ namespace gsr { debug_print_args(args); - pid_t pid = vfork(); + const pid_t pid = vfork(); if(pid == -1) { close(fds[PIPE_READ]); close(fds[PIPE_WRITE]); @@ -95,7 +95,7 @@ namespace gsr { int exec_program_get_stdout(const char **args, std::string &result) { result.clear(); int read_fd = -1; - pid_t process_id = exec_program(args, &read_fd); + const pid_t process_id = exec_program(args, &read_fd); if(process_id == -1) return -1; -- cgit v1.2.3