mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Add comments explaining Windows Service console attachment flow in os_term
This commit is contained in:
parent
f67bf49c91
commit
6c85573d12
2 changed files with 6 additions and 4 deletions
2
os/os.h
2
os/os.h
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue