switch_root, tailf, uuidparse, waitpid: add pages (#12108)

* switch_root, tailf, uuidparse, waitpid: add pages

---------

Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
This commit is contained in:
Juri Dispan
2024-01-23 08:26:57 +01:00
committed by GitHub
parent 77483d96d9
commit 14bb4a9221
4 changed files with 80 additions and 0 deletions

25
pages/linux/waitpid.md Normal file
View File

@@ -0,0 +1,25 @@
# waitpid
> Wait for the termination of arbitrary processes.
> See also: `wait`.
> More information: <https://manned.org/waitpid.1>.
- Sleep until all processes whose PIDs have been specified have exited:
`waitpid {{pid1 pid2 ...}}`
- Sleep for at most `n` seconds:
`waitpid --timeout {{n}} {{pid1 pid2 ...}}`
- Do not error if specified PIDs have already exited:
`waitpid --exited {{pid1 pid2 ...}}`
- Sleep until `n` of the specified processes have exited:
`waitpid --count {{n}} {{pid1 pid2 ...}}`
- Display help:
`waitpid -h`