aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-29 15:21:38 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-29 15:21:38 +0100
commitb96b877a1a5c96d3d8982e43637d4223fdf99c14 (patch)
tree195bb3163e288c6e9d450ecfabb785819c6cfe65 /include
parentc5c79bec64a991f350632f02f59d25c3d61d01fc (diff)
Only allow one instance of gsr-ui to run
Diffstat (limited to 'include')
-rw-r--r--include/Process.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/Process.hpp b/include/Process.hpp
index 40373b5..6fd8c31 100644
--- a/include/Process.hpp
+++ b/include/Process.hpp
@@ -17,6 +17,5 @@ namespace gsr {
pid_t exec_program(const char **args, int *read_fd);
// Arguments ending with NULL. Returns the exit status of the program or -1 on error
int exec_program_get_stdout(const char **args, std::string &result);
- // |output_buffer| should be at least PATH_MAX in size
- bool read_cmdline_arg0(const char *filepath, char *output_buffer);
+ pid_t pidof(const char *process_name);
} \ No newline at end of file