Add comments explaining Windows Service console attachment flow in os_term

This commit is contained in:
Andrea Mazzoleni 2026-08-04 11:55:20 +02:00
parent f67bf49c91
commit 6c85573d12
2 changed files with 6 additions and 4 deletions

View file

@ -134,7 +134,7 @@ pid_t os_spawn(char** argv, int* stdout_read_fd, int* stderr_read_fd, const char
pid_t os_wait(pid_t pid, int* status);
/**
* Terminate gracefully a process.
* Terminate gracefully a process. Intended for daemon/service processes controlling child processes.
* The caller must subsequently call os_wait() to reap process resources and close handles.
* \param pid Process ID of the process to terminate.
* \return 0 on success, -1 on failure.