Implement graceful termination and group-based app tracking

This commit is contained in:
Cameron Gutman
2024-01-07 16:27:14 -06:00
parent d05a67166e
commit 593e170da8
8 changed files with 262 additions and 10 deletions

View File

@@ -618,6 +618,22 @@ namespace platf {
void
open_url(const std::string &url);
/**
* @brief Attempt to gracefully terminate a process group.
* @param native_handle The native handle of the process group.
* @return true if termination was successfully requested.
*/
bool
request_process_group_exit(std::uintptr_t native_handle);
/**
* @brief Checks if a process group still has running children.
* @param native_handle The native handle of the process group.
* @return true if processes are still running.
*/
bool
process_group_running(std::uintptr_t native_handle);
input_t
input();
void