pidof ignore self

This commit is contained in:
dec05eba
2025-01-04 02:30:14 +01:00
parent 36c7bbfda3
commit f4dc077299
3 changed files with 8 additions and 5 deletions

View File

@@ -21,5 +21,5 @@ namespace gsr {
// This works the same as |exec_program_get_stdout|, except on flatpak where this runs the program on the
// host machine with flatpak-spawn --host
int exec_program_on_host_get_stdout(const char **args, std::string &result);
pid_t pidof(const char *process_name);
pid_t pidof(const char *process_name, pid_t ignore_pid);
}